| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PPAPI_PPB_CONTEXT_3D_PROXY_H_ | 5 #ifndef PPAPI_PPB_CONTEXT_3D_PROXY_H_ |
| 6 #define PPAPI_PPB_CONTEXT_3D_PROXY_H_ | 6 #define PPAPI_PPB_CONTEXT_3D_PROXY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_impl_; | 67 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_impl_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(Context3D); | 69 DISALLOW_COPY_AND_ASSIGN(Context3D); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 class PPB_Context3D_Proxy : public InterfaceProxy { | 72 class PPB_Context3D_Proxy : public InterfaceProxy { |
| 73 public: | 73 public: |
| 74 PPB_Context3D_Proxy(Dispatcher* dispatcher, const void* target_interface); | 74 PPB_Context3D_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 75 virtual ~PPB_Context3D_Proxy(); | 75 virtual ~PPB_Context3D_Proxy(); |
| 76 | 76 |
| 77 static const Info* GetInfo(); |
| 78 |
| 77 const PPB_Context3D_Dev* ppb_context_3d_target() const { | 79 const PPB_Context3D_Dev* ppb_context_3d_target() const { |
| 78 return reinterpret_cast<const PPB_Context3D_Dev*>(target_interface()); | 80 return reinterpret_cast<const PPB_Context3D_Dev*>(target_interface()); |
| 79 } | 81 } |
| 80 const PPB_Context3DTrusted_Dev* ppb_context_3d_trusted() const; | 82 const PPB_Context3DTrusted_Dev* ppb_context_3d_trusted() const; |
| 81 | 83 |
| 82 // InterfaceProxy implementation. | 84 // InterfaceProxy implementation. |
| 83 virtual const void* GetSourceInterface() const; | |
| 84 virtual InterfaceID GetInterfaceId() const; | |
| 85 virtual bool OnMessageReceived(const IPC::Message& msg); | 85 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 void OnMsgCreate(PP_Instance instance, | 88 void OnMsgCreate(PP_Instance instance, |
| 89 PP_Config3D_Dev config, | 89 PP_Config3D_Dev config, |
| 90 std::vector<int32_t> attribs, | 90 std::vector<int32_t> attribs, |
| 91 HostResource* result); | 91 HostResource* result); |
| 92 void OnMsgBindSurfaces(const HostResource& context, | 92 void OnMsgBindSurfaces(const HostResource& context, |
| 93 const HostResource& draw, | 93 const HostResource& draw, |
| 94 const HostResource& read, | 94 const HostResource& read, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 111 void OnMsgGetTransferBuffer(const HostResource& context, | 111 void OnMsgGetTransferBuffer(const HostResource& context, |
| 112 int32 id, | 112 int32 id, |
| 113 base::SharedMemoryHandle* transfer_buffer, | 113 base::SharedMemoryHandle* transfer_buffer, |
| 114 uint32* size); | 114 uint32* size); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace proxy | 117 } // namespace proxy |
| 118 } // namespace pp | 118 } // namespace pp |
| 119 | 119 |
| 120 #endif // PPAPI_PPB_CONTEXT_3D_PROXY_H_ | 120 #endif // PPAPI_PPB_CONTEXT_3D_PROXY_H_ |
| OLD | NEW |