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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 gpu::CommandBuffer::State* state, | 89 gpu::CommandBuffer::State* state, |
90 bool* success); | 90 bool* success); |
91 void OnMsgFlush(const HostResource& context, | 91 void OnMsgFlush(const HostResource& context, |
92 int32 put_offset, | 92 int32 put_offset, |
93 int32 last_known_get, | 93 int32 last_known_get, |
94 gpu::CommandBuffer::State* state, | 94 gpu::CommandBuffer::State* state, |
95 bool* success); | 95 bool* success); |
96 void OnMsgAsyncFlush(const HostResource& context, | 96 void OnMsgAsyncFlush(const HostResource& context, |
97 int32 put_offset); | 97 int32 put_offset); |
98 void OnMsgCreateTransferBuffer(const HostResource& context, | 98 void OnMsgCreateTransferBuffer(const HostResource& context, |
99 int32 size, | 99 uint32 size, |
100 int32* id); | 100 int32* id); |
101 void OnMsgDestroyTransferBuffer(const HostResource& context, | 101 void OnMsgDestroyTransferBuffer(const HostResource& context, |
102 int32 id); | 102 int32 id); |
103 void OnMsgGetTransferBuffer(const HostResource& context, | 103 void OnMsgGetTransferBuffer(const HostResource& context, |
104 int32 id, | 104 int32 id, |
105 ppapi::proxy::SerializedHandle* transfer_buffer); | 105 ppapi::proxy::SerializedHandle* transfer_buffer); |
106 void OnMsgSwapBuffers(const HostResource& context); | 106 void OnMsgSwapBuffers(const HostResource& context); |
107 // Renderer->plugin message handlers. | 107 // Renderer->plugin message handlers. |
108 void OnMsgSwapBuffersACK(const HostResource& context, | 108 void OnMsgSwapBuffersACK(const HostResource& context, |
109 int32_t pp_error); | 109 int32_t pp_error); |
110 | 110 |
111 void SendSwapBuffersACKToPlugin(int32_t result, | 111 void SendSwapBuffersACKToPlugin(int32_t result, |
112 const HostResource& context); | 112 const HostResource& context); |
113 | 113 |
114 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; | 114 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; |
115 | 115 |
116 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 116 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
117 }; | 117 }; |
118 | 118 |
119 } // namespace proxy | 119 } // namespace proxy |
120 } // namespace ppapi | 120 } // namespace ppapi |
121 | 121 |
122 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 122 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
123 | 123 |
OLD | NEW |