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_context_3d_proxy.h" | 5 #include "ppapi/proxy/ppb_context_3d_proxy.h" |
6 | 6 |
7 #include "base/hash_tables.h" | 7 #include "base/hash_tables.h" |
8 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 8 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
9 #include "gpu/command_buffer/client/gles2_implementation.h" | 9 #include "gpu/command_buffer/client/gles2_implementation.h" |
10 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 #include "ppapi/c/dev/ppb_context_3d_dev.h" | 12 #include "ppapi/c/dev/ppb_context_3d_dev.h" |
13 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" | 13 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" |
14 #include "ppapi/proxy/enter_proxy.h" | 14 #include "ppapi/proxy/enter_proxy.h" |
15 #include "ppapi/proxy/plugin_dispatcher.h" | 15 #include "ppapi/proxy/plugin_dispatcher.h" |
16 #include "ppapi/proxy/plugin_resource.h" | 16 #include "ppapi/proxy/plugin_resource.h" |
17 #include "ppapi/proxy/ppapi_messages.h" | 17 #include "ppapi/proxy/ppapi_messages.h" |
18 #include "ppapi/proxy/ppb_surface_3d_proxy.h" | 18 #include "ppapi/proxy/ppb_surface_3d_proxy.h" |
19 #include "ppapi/thunk/enter.h" | 19 #include "ppapi/thunk/enter.h" |
20 #include "ppapi/thunk/resource_creation_api.h" | 20 #include "ppapi/thunk/resource_creation_api.h" |
21 #include "ppapi/thunk/thunk.h" | 21 #include "ppapi/thunk/thunk.h" |
22 | 22 |
| 23 using ppapi::HostResource; |
23 using ppapi::thunk::EnterFunctionNoLock; | 24 using ppapi::thunk::EnterFunctionNoLock; |
24 using ppapi::thunk::EnterResourceNoLock; | 25 using ppapi::thunk::EnterResourceNoLock; |
25 using ppapi::thunk::PPB_Context3D_API; | 26 using ppapi::thunk::PPB_Context3D_API; |
26 using ppapi::thunk::PPB_Surface3D_API; | 27 using ppapi::thunk::PPB_Surface3D_API; |
27 using ppapi::thunk::ResourceCreationAPI; | 28 using ppapi::thunk::ResourceCreationAPI; |
28 | 29 |
29 namespace pp { | 30 namespace pp { |
30 namespace proxy { | 31 namespace proxy { |
31 | 32 |
32 namespace { | 33 namespace { |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 uint32_t shm_size = 0; | 720 uint32_t shm_size = 0; |
720 if (enter.succeeded() && | 721 if (enter.succeeded() && |
721 enter.object()->GetTransferBuffer(id, &shm_handle, &shm_size)) { | 722 enter.object()->GetTransferBuffer(id, &shm_handle, &shm_size)) { |
722 *transfer_buffer = TransportSHMHandleFromInt(dispatcher(), shm_handle); | 723 *transfer_buffer = TransportSHMHandleFromInt(dispatcher(), shm_handle); |
723 *size = shm_size; | 724 *size = shm_size; |
724 } | 725 } |
725 } | 726 } |
726 | 727 |
727 } // namespace proxy | 728 } // namespace proxy |
728 } // namespace pp | 729 } // namespace pp |
OLD | NEW |