Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: ppapi/proxy/ppb_graphics_3d_proxy.h

Issue 11894003: PPAPI/NaCl: Move handle extraction code to ppapi/proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_buffer_proxy.h ('k') | ppapi/proxy/ppb_image_data_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_completion_callback_factory.h" 15 #include "ppapi/proxy/proxy_completion_callback_factory.h"
16 #include "ppapi/proxy/serialized_structs.h"
17 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" 16 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h"
18 #include "ppapi/shared_impl/resource.h" 17 #include "ppapi/shared_impl/resource.h"
19 #include "ppapi/utility/completion_callback_factory.h" 18 #include "ppapi/utility/completion_callback_factory.h"
20 19
21 namespace ppapi { 20 namespace ppapi {
22 21
23 class HostResource; 22 class HostResource;
24 23
25 namespace proxy { 24 namespace proxy {
26 25
26 class SerializedHandle;
27
27 class Graphics3D : public PPB_Graphics3D_Shared { 28 class Graphics3D : public PPB_Graphics3D_Shared {
28 public: 29 public:
29 explicit Graphics3D(const HostResource& resource); 30 explicit Graphics3D(const HostResource& resource);
30 virtual ~Graphics3D(); 31 virtual ~Graphics3D();
31 32
32 bool Init(gpu::gles2::GLES2Implementation* share_gles2); 33 bool Init(gpu::gles2::GLES2Implementation* share_gles2);
33 34
34 // Graphics3DTrusted API. These are not implemented in the proxy. 35 // Graphics3DTrusted API. These are not implemented in the proxy.
35 virtual PP_Bool InitCommandBuffer() OVERRIDE; 36 virtual PP_Bool InitCommandBuffer() OVERRIDE;
36 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE; 37 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; 115 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 117 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
117 }; 118 };
118 119
119 } // namespace proxy 120 } // namespace proxy
120 } // namespace ppapi 121 } // namespace ppapi
121 122
122 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 123 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
123 124
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_buffer_proxy.h ('k') | ppapi/proxy/ppb_image_data_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698