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

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

Issue 6286070: Remove all uses of the global Dispatcher Get function. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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_char_set_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PPB_CONTEXT_3D_PROXY_H_ 5 #ifndef PPAPI_PPB_CONTEXT_3D_PROXY_H_
6 #define PPAPI_PPB_CONTEXT_3D_PROXY_H_ 6 #define PPAPI_PPB_CONTEXT_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"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_impl_; 67 scoped_ptr<gpu::gles2::GLES2Implementation> gles2_impl_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(Context3D); 69 DISALLOW_COPY_AND_ASSIGN(Context3D);
70 }; 70 };
71 71
72 class PPB_Context3D_Proxy : public InterfaceProxy { 72 class PPB_Context3D_Proxy : public InterfaceProxy {
73 public: 73 public:
74 PPB_Context3D_Proxy(Dispatcher* dispatcher, const void* target_interface); 74 PPB_Context3D_Proxy(Dispatcher* dispatcher, const void* target_interface);
75 virtual ~PPB_Context3D_Proxy(); 75 virtual ~PPB_Context3D_Proxy();
76 76
77 static const Info* GetInfo();
78
77 const PPB_Context3D_Dev* ppb_context_3d_target() const { 79 const PPB_Context3D_Dev* ppb_context_3d_target() const {
78 return reinterpret_cast<const PPB_Context3D_Dev*>(target_interface()); 80 return reinterpret_cast<const PPB_Context3D_Dev*>(target_interface());
79 } 81 }
80 const PPB_Context3DTrusted_Dev* ppb_context_3d_trusted() const; 82 const PPB_Context3DTrusted_Dev* ppb_context_3d_trusted() const;
81 83
82 // InterfaceProxy implementation. 84 // InterfaceProxy implementation.
83 virtual const void* GetSourceInterface() const;
84 virtual InterfaceID GetInterfaceId() const;
85 virtual bool OnMessageReceived(const IPC::Message& msg); 85 virtual bool OnMessageReceived(const IPC::Message& msg);
86 86
87 private: 87 private:
88 void OnMsgCreate(PP_Instance instance, 88 void OnMsgCreate(PP_Instance instance,
89 PP_Config3D_Dev config, 89 PP_Config3D_Dev config,
90 std::vector<int32_t> attribs, 90 std::vector<int32_t> attribs,
91 HostResource* result); 91 HostResource* result);
92 void OnMsgBindSurfaces(const HostResource& context, 92 void OnMsgBindSurfaces(const HostResource& context,
93 const HostResource& draw, 93 const HostResource& draw,
94 const HostResource& read, 94 const HostResource& read,
(...skipping 16 matching lines...) Expand all
111 void OnMsgGetTransferBuffer(const HostResource& context, 111 void OnMsgGetTransferBuffer(const HostResource& context,
112 int32 id, 112 int32 id,
113 base::SharedMemoryHandle* transfer_buffer, 113 base::SharedMemoryHandle* transfer_buffer,
114 uint32* size); 114 uint32* size);
115 }; 115 };
116 116
117 } // namespace proxy 117 } // namespace proxy
118 } // namespace pp 118 } // namespace pp
119 119
120 #endif // PPAPI_PPB_CONTEXT_3D_PROXY_H_ 120 #endif // PPAPI_PPB_CONTEXT_3D_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_char_set_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