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

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

Issue 7737013: Move PPAPI graphics3d and opengles interfaces out of Dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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_context_3d_proxy.h ('k') | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('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) 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 #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/dev/pp_graphics_3d_dev.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/cpp/completion_callback.h" 14 #include "ppapi/cpp/completion_callback.h"
15 #include "ppapi/proxy/interface_proxy.h" 15 #include "ppapi/proxy/interface_proxy.h"
16 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 16 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
17 #include "ppapi/shared_impl/graphics_3d_impl.h" 17 #include "ppapi/shared_impl/graphics_3d_impl.h"
18 #include "ppapi/shared_impl/resource.h" 18 #include "ppapi/shared_impl/resource.h"
19 19
20 namespace ppapi { 20 namespace ppapi {
21 21
22 class HostResource; 22 class HostResource;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 public: 65 public:
66 PPB_Graphics3D_Proxy(Dispatcher* dispatcher, const void* target_interface); 66 PPB_Graphics3D_Proxy(Dispatcher* dispatcher, const void* target_interface);
67 virtual ~PPB_Graphics3D_Proxy(); 67 virtual ~PPB_Graphics3D_Proxy();
68 68
69 static const Info* GetInfo(); 69 static const Info* GetInfo();
70 70
71 static PP_Resource CreateProxyResource(PP_Instance instance, 71 static PP_Resource CreateProxyResource(PP_Instance instance,
72 PP_Resource share_context, 72 PP_Resource share_context,
73 const int32_t* attrib_list); 73 const int32_t* attrib_list);
74 74
75 const PPB_Graphics3D_Dev* ppb_graphics_3d_target() const { 75 const PPB_Graphics3D* ppb_graphics_3d_target() const {
76 return static_cast<const PPB_Graphics3D_Dev*>(target_interface()); 76 return static_cast<const PPB_Graphics3D*>(target_interface());
77 } 77 }
78 78
79 // InterfaceProxy implementation. 79 // InterfaceProxy implementation.
80 virtual bool OnMessageReceived(const IPC::Message& msg); 80 virtual bool OnMessageReceived(const IPC::Message& msg);
81 81
82 private: 82 private:
83 void OnMsgCreate(PP_Instance instance, 83 void OnMsgCreate(PP_Instance instance,
84 const std::vector<int32_t>& attribs, 84 const std::vector<int32_t>& attribs,
85 HostResource* result); 85 HostResource* result);
86 void OnMsgInitCommandBuffer(const HostResource& context, 86 void OnMsgInitCommandBuffer(const HostResource& context,
(...skipping 28 matching lines...) Expand all
115 ProxyNonThreadSafeRefCount> callback_factory_; 115 ProxyNonThreadSafeRefCount> callback_factory_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 117 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
118 }; 118 };
119 119
120 } // namespace proxy 120 } // namespace proxy
121 } // namespace ppapi 121 } // namespace ppapi
122 122
123 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 123 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
124 124
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_context_3d_proxy.h ('k') | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698