| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROXY_PPB_CONTEXT_3D_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 virtual ~PPB_Context3D_Proxy(); | 98 virtual ~PPB_Context3D_Proxy(); |
| 99 | 99 |
| 100 static PP_Resource Create(PP_Instance instance, | 100 static PP_Resource Create(PP_Instance instance, |
| 101 PP_Config3D_Dev config, | 101 PP_Config3D_Dev config, |
| 102 PP_Resource share_context, | 102 PP_Resource share_context, |
| 103 const int32_t* attrib_list); | 103 const int32_t* attrib_list); |
| 104 | 104 |
| 105 // InterfaceProxy implementation. | 105 // InterfaceProxy implementation. |
| 106 virtual bool OnMessageReceived(const IPC::Message& msg); | 106 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 107 | 107 |
| 108 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_CONTEXT_3D; | 108 static const ApiID kApiID = API_ID_PPB_CONTEXT_3D; |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 void OnMsgCreate(PP_Instance instance, | 111 void OnMsgCreate(PP_Instance instance, |
| 112 PP_Config3D_Dev config, | 112 PP_Config3D_Dev config, |
| 113 const std::vector<int32_t>& attribs, | 113 const std::vector<int32_t>& attribs, |
| 114 HostResource* result); | 114 HostResource* result); |
| 115 void OnMsgBindSurfaces(const HostResource& context, | 115 void OnMsgBindSurfaces(const HostResource& context, |
| 116 const HostResource& draw, | 116 const HostResource& draw, |
| 117 const HostResource& read, | 117 const HostResource& read, |
| 118 int32_t* result); | 118 int32_t* result); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 135 void OnMsgGetTransferBuffer(const HostResource& context, | 135 void OnMsgGetTransferBuffer(const HostResource& context, |
| 136 int32 id, | 136 int32 id, |
| 137 base::SharedMemoryHandle* transfer_buffer, | 137 base::SharedMemoryHandle* transfer_buffer, |
| 138 uint32* size); | 138 uint32* size); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace proxy | 141 } // namespace proxy |
| 142 } // namespace ppapi | 142 } // namespace ppapi |
| 143 | 143 |
| 144 #endif // PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ | 144 #endif // PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ |
| OLD | NEW |