OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // 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 |
| 10 struct PPB_OpenGLES2_Dev; |
| 11 |
| 12 namespace pp { |
| 13 namespace proxy { |
| 14 |
| 15 class PPB_OpenGLES2_Proxy : public InterfaceProxy { |
| 16 public: |
| 17 PPB_OpenGLES2_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 18 virtual ~PPB_OpenGLES2_Proxy(); |
| 19 |
| 20 const PPB_OpenGLES2_Dev* ppb_gles2_target() const { |
| 21 return reinterpret_cast<const PPB_OpenGLES2_Dev*>(target_interface()); |
| 22 } |
| 23 |
| 24 // InterfaceProxy implementation. |
| 25 virtual const void* GetSourceInterface() const; |
| 26 virtual InterfaceID GetInterfaceId() const; |
| 27 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 28 |
| 29 private: |
| 30 }; |
| 31 |
| 32 } // namespace proxy |
| 33 } // namespace pp |
| 34 |
| 35 #endif // PPAPI_PPB_OPENGLES2_PROXY_H_ |
OLD | NEW |