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_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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 PPB_Graphics3D_Proxy(Dispatcher* dispatcher); | 66 PPB_Graphics3D_Proxy(Dispatcher* dispatcher); |
67 virtual ~PPB_Graphics3D_Proxy(); | 67 virtual ~PPB_Graphics3D_Proxy(); |
68 | 68 |
69 static PP_Resource CreateProxyResource(PP_Instance instance, | 69 static PP_Resource CreateProxyResource(PP_Instance instance, |
70 PP_Resource share_context, | 70 PP_Resource share_context, |
71 const int32_t* attrib_list); | 71 const int32_t* attrib_list); |
72 | 72 |
73 // InterfaceProxy implementation. | 73 // InterfaceProxy implementation. |
74 virtual bool OnMessageReceived(const IPC::Message& msg); | 74 virtual bool OnMessageReceived(const IPC::Message& msg); |
75 | 75 |
76 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_GRAPHICS_3D; | 76 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; |
77 | 77 |
78 private: | 78 private: |
79 void OnMsgCreate(PP_Instance instance, | 79 void OnMsgCreate(PP_Instance instance, |
80 const std::vector<int32_t>& attribs, | 80 const std::vector<int32_t>& attribs, |
81 HostResource* result); | 81 HostResource* result); |
82 void OnMsgInitCommandBuffer(const HostResource& context, | 82 void OnMsgInitCommandBuffer(const HostResource& context, |
83 int32 size, | 83 int32 size, |
84 base::SharedMemoryHandle* ring_buffer); | 84 base::SharedMemoryHandle* ring_buffer); |
85 void OnMsgGetState(const HostResource& context, | 85 void OnMsgGetState(const HostResource& context, |
86 gpu::CommandBuffer::State* state); | 86 gpu::CommandBuffer::State* state); |
(...skipping 24 matching lines...) Expand all Loading... |
111 ProxyNonThreadSafeRefCount> callback_factory_; | 111 ProxyNonThreadSafeRefCount> callback_factory_; |
112 | 112 |
113 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 113 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
114 }; | 114 }; |
115 | 115 |
116 } // namespace proxy | 116 } // namespace proxy |
117 } // namespace ppapi | 117 } // namespace ppapi |
118 | 118 |
119 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 119 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
120 | 120 |
OLD | NEW |