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

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

Issue 7844018: Revert 100748 - This patch tries to remove most of the manual registration for Pepper interfaces,... (Closed) Base URL: svn://svn.chromium.org/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_console_proxy.cc ('k') | ppapi/proxy/ppb_context_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_CONTEXT_3D_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_
6 #define PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ 6 #define PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 scoped_ptr<gpu::CommandBuffer> command_buffer_; 87 scoped_ptr<gpu::CommandBuffer> command_buffer_;
88 scoped_ptr<gpu::gles2::GLES2CmdHelper> helper_; 88 scoped_ptr<gpu::gles2::GLES2CmdHelper> helper_;
89 int32 transfer_buffer_id_; 89 int32 transfer_buffer_id_;
90 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_impl_; 90 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_impl_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(Context3D); 92 DISALLOW_COPY_AND_ASSIGN(Context3D);
93 }; 93 };
94 94
95 class PPB_Context3D_Proxy : public InterfaceProxy { 95 class PPB_Context3D_Proxy : public InterfaceProxy {
96 public: 96 public:
97 PPB_Context3D_Proxy(Dispatcher* dispatcher); 97 PPB_Context3D_Proxy(Dispatcher* dispatcher, const void* target_interface);
98 virtual ~PPB_Context3D_Proxy(); 98 virtual ~PPB_Context3D_Proxy();
99 99
100 static const Info* GetInfo();
101 static const Info* GetTextureMappingInfo();
102
100 static PP_Resource Create(PP_Instance instance, 103 static PP_Resource Create(PP_Instance instance,
101 PP_Config3D_Dev config, 104 PP_Config3D_Dev config,
102 PP_Resource share_context, 105 PP_Resource share_context,
103 const int32_t* attrib_list); 106 const int32_t* attrib_list);
104 107
105 // InterfaceProxy implementation. 108 // InterfaceProxy implementation.
106 virtual bool OnMessageReceived(const IPC::Message& msg); 109 virtual bool OnMessageReceived(const IPC::Message& msg);
107 110
108 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_CONTEXT_3D;
109
110 private: 111 private:
111 void OnMsgCreate(PP_Instance instance, 112 void OnMsgCreate(PP_Instance instance,
112 PP_Config3D_Dev config, 113 PP_Config3D_Dev config,
113 const std::vector<int32_t>& attribs, 114 const std::vector<int32_t>& attribs,
114 HostResource* result); 115 HostResource* result);
115 void OnMsgBindSurfaces(const HostResource& context, 116 void OnMsgBindSurfaces(const HostResource& context,
116 const HostResource& draw, 117 const HostResource& draw,
117 const HostResource& read, 118 const HostResource& read,
118 int32_t* result); 119 int32_t* result);
119 void OnMsgInitialize(const HostResource& context, 120 void OnMsgInitialize(const HostResource& context,
(...skipping 15 matching lines...) Expand all
135 void OnMsgGetTransferBuffer(const HostResource& context, 136 void OnMsgGetTransferBuffer(const HostResource& context,
136 int32 id, 137 int32 id,
137 base::SharedMemoryHandle* transfer_buffer, 138 base::SharedMemoryHandle* transfer_buffer,
138 uint32* size); 139 uint32* size);
139 }; 140 };
140 141
141 } // namespace proxy 142 } // namespace proxy
142 } // namespace ppapi 143 } // namespace ppapi
143 144
144 #endif // PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_ 145 #endif // PPAPI_PROXY_PPB_CONTEXT_3D_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_console_proxy.cc ('k') | ppapi/proxy/ppb_context_3d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698