| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GRAPHICS_3D_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_GRAPHICS_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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 PP_Resource share_context, | 65 PP_Resource share_context, |
| 66 const int32_t* attrib_list); | 66 const int32_t* attrib_list); |
| 67 | 67 |
| 68 // InterfaceProxy implementation. | 68 // InterfaceProxy implementation. |
| 69 virtual bool OnMessageReceived(const IPC::Message& msg); | 69 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 70 | 70 |
| 71 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; | 71 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 void OnMsgCreate(PP_Instance instance, | 74 void OnMsgCreate(PP_Instance instance, |
| 75 HostResource shared_context, |
| 75 const std::vector<int32_t>& attribs, | 76 const std::vector<int32_t>& attribs, |
| 76 HostResource* result); | 77 HostResource* result); |
| 77 void OnMsgInitCommandBuffer(const HostResource& context); | 78 void OnMsgInitCommandBuffer(const HostResource& context); |
| 78 void OnMsgSetGetBuffer(const HostResource& context, | 79 void OnMsgSetGetBuffer(const HostResource& context, |
| 79 int32 id); | 80 int32 id); |
| 80 void OnMsgGetState(const HostResource& context, | 81 void OnMsgGetState(const HostResource& context, |
| 81 gpu::CommandBuffer::State* state); | 82 gpu::CommandBuffer::State* state); |
| 82 void OnMsgFlush(const HostResource& context, | 83 void OnMsgFlush(const HostResource& context, |
| 83 int32 put_offset, | 84 int32 put_offset, |
| 84 int32 last_known_get, | 85 int32 last_known_get, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 106 ProxyNonThreadSafeRefCount> callback_factory_; | 107 ProxyNonThreadSafeRefCount> callback_factory_; |
| 107 | 108 |
| 108 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 109 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace proxy | 112 } // namespace proxy |
| 112 } // namespace ppapi | 113 } // namespace ppapi |
| 113 | 114 |
| 114 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 115 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
| 115 | 116 |
| OLD | NEW |