blob: 9388f4c8e9af19c8f94ed4bd684af2519b3b99c9 [file] [log] [blame]
[email protected]bd78a642011-07-19 20:31:441// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]f56279c2011-02-02 18:12:312// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef PPAPI_PPB_OPENGLES2_PROXY_H_
6#define PPAPI_PPB_OPENGLES2_PROXY_H_
7
8#include "ppapi/proxy/interface_proxy.h"
9
10struct PPB_OpenGLES2_Dev;
11
12namespace pp {
13namespace proxy {
14
15class PPB_OpenGLES2_Proxy : public InterfaceProxy {
16 public:
17 PPB_OpenGLES2_Proxy(Dispatcher* dispatcher, const void* target_interface);
18 virtual ~PPB_OpenGLES2_Proxy();
19
[email protected]465faa22011-02-08 16:31:4620 static const Info* GetInfo();
21
[email protected]bd78a642011-07-19 20:31:4422 const PPB_OpenGLES2_Dev* ppb_opengles2_target() const {
[email protected]f56279c2011-02-02 18:12:3123 return reinterpret_cast<const PPB_OpenGLES2_Dev*>(target_interface());
24 }
25
26 // InterfaceProxy implementation.
[email protected]f56279c2011-02-02 18:12:3127 virtual bool OnMessageReceived(const IPC::Message& msg);
[email protected]f56279c2011-02-02 18:12:3128};
29
30} // namespace proxy
31} // namespace pp
32
33#endif // PPAPI_PPB_OPENGLES2_PROXY_H_