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" |
11 #include "gpu/command_buffer/common/command_buffer.h" | 11 #include "gpu/command_buffer/common/command_buffer.h" |
12 #include "ppapi/c/pp_graphics_3d.h" | 12 #include "ppapi/c/pp_graphics_3d.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/proxy/interface_proxy.h" | 14 #include "ppapi/proxy/interface_proxy.h" |
15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" | 15 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
16 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" | 16 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
17 #include "ppapi/shared_impl/resource.h" | 17 #include "ppapi/shared_impl/resource.h" |
18 #include "ppapi/utility/completion_callback_factory.h" | 18 #include "ppapi/utility/completion_callback_factory.h" |
19 | 19 |
20 namespace ppapi { | 20 namespace ppapi { |
21 | 21 |
22 class HostResource; | 22 class HostResource; |
23 | 23 |
24 namespace proxy { | 24 namespace proxy { |
25 | 25 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 base::SharedMemoryHandle* transfer_buffer, | 99 base::SharedMemoryHandle* transfer_buffer, |
100 uint32* size); | 100 uint32* size); |
101 void OnMsgSwapBuffers(const HostResource& context); | 101 void OnMsgSwapBuffers(const HostResource& context); |
102 // Renderer->plugin message handlers. | 102 // Renderer->plugin message handlers. |
103 void OnMsgSwapBuffersACK(const HostResource& context, | 103 void OnMsgSwapBuffersACK(const HostResource& context, |
104 int32_t pp_error); | 104 int32_t pp_error); |
105 | 105 |
106 void SendSwapBuffersACKToPlugin(int32_t result, | 106 void SendSwapBuffersACKToPlugin(int32_t result, |
107 const HostResource& context); | 107 const HostResource& context); |
108 | 108 |
109 pp::CompletionCallbackFactory<PPB_Graphics3D_Proxy, | 109 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; |
110 ProxyNonThreadSafeRefCount> callback_factory_; | |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 111 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace proxy | 114 } // namespace proxy |
116 } // namespace ppapi | 115 } // namespace ppapi |
117 | 116 |
118 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 117 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
119 | 118 |
OLD | NEW |