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 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 5 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
6 | 6 |
7 #include "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/proxy/enter_proxy.h" | 9 #include "ppapi/proxy/enter_proxy.h" |
10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
11 #include "ppapi/proxy/ppapi_messages.h" | 11 #include "ppapi/proxy/ppapi_messages.h" |
12 #include "ppapi/thunk/enter.h" | 12 #include "ppapi/thunk/enter.h" |
13 #include "ppapi/thunk/resource_creation_api.h" | 13 #include "ppapi/thunk/resource_creation_api.h" |
14 #include "ppapi/thunk/thunk.h" | 14 #include "ppapi/thunk/thunk.h" |
15 | 15 |
| 16 using ppapi::HostResource; |
16 using ppapi::thunk::EnterFunctionNoLock; | 17 using ppapi::thunk::EnterFunctionNoLock; |
17 using ppapi::thunk::EnterResourceNoLock; | 18 using ppapi::thunk::EnterResourceNoLock; |
18 using ppapi::thunk::PPB_Graphics3D_API; | 19 using ppapi::thunk::PPB_Graphics3D_API; |
19 using ppapi::thunk::ResourceCreationAPI; | 20 using ppapi::thunk::ResourceCreationAPI; |
20 | 21 |
21 namespace pp { | 22 namespace pp { |
22 namespace proxy { | 23 namespace proxy { |
23 | 24 |
24 namespace { | 25 namespace { |
25 const int32 kCommandBufferSize = 1024 * 1024; | 26 const int32 kCommandBufferSize = 1024 * 1024; |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin( | 605 void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin( |
605 int32_t result, | 606 int32_t result, |
606 const HostResource& context) { | 607 const HostResource& context) { |
607 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK( | 608 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK( |
608 INTERFACE_ID_PPB_GRAPHICS_3D, context, result)); | 609 INTERFACE_ID_PPB_GRAPHICS_3D, context, result)); |
609 } | 610 } |
610 | 611 |
611 } // namespace proxy | 612 } // namespace proxy |
612 } // namespace pp | 613 } // namespace pp |
613 | 614 |
OLD | NEW |