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

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

Issue 7576012: Removed config management from Graphics3D API. It will be better handled in the EGL helper library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
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"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 }; 62 };
63 63
64 class PPB_Graphics3D_Proxy : public InterfaceProxy { 64 class PPB_Graphics3D_Proxy : public InterfaceProxy {
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_Config3D_Dev config,
73 PP_Resource share_context, 72 PP_Resource share_context,
74 const int32_t* attrib_list); 73 const int32_t* attrib_list);
75 74
76 const PPB_Graphics3D_Dev* ppb_graphics_3d_target() const { 75 const PPB_Graphics3D_Dev* ppb_graphics_3d_target() const {
77 return static_cast<const PPB_Graphics3D_Dev*>(target_interface()); 76 return static_cast<const PPB_Graphics3D_Dev*>(target_interface());
78 } 77 }
79 78
80 // InterfaceProxy implementation. 79 // InterfaceProxy implementation.
81 virtual bool OnMessageReceived(const IPC::Message& msg); 80 virtual bool OnMessageReceived(const IPC::Message& msg);
82 81
83 private: 82 private:
84 void OnMsgCreate(PP_Instance instance, 83 void OnMsgCreate(PP_Instance instance,
85 PP_Config3D_Dev config,
86 const std::vector<int32_t>& attribs, 84 const std::vector<int32_t>& attribs,
87 HostResource* result); 85 HostResource* result);
88 void OnMsgInitCommandBuffer(const HostResource& context, 86 void OnMsgInitCommandBuffer(const HostResource& context,
89 int32 size, 87 int32 size,
90 base::SharedMemoryHandle* ring_buffer); 88 base::SharedMemoryHandle* ring_buffer);
91 void OnMsgGetState(const HostResource& context, 89 void OnMsgGetState(const HostResource& context,
92 gpu::CommandBuffer::State* state); 90 gpu::CommandBuffer::State* state);
93 void OnMsgFlush(const HostResource& context, 91 void OnMsgFlush(const HostResource& context,
94 int32 put_offset, 92 int32 put_offset,
95 int32 last_known_get, 93 int32 last_known_get,
(...skipping 20 matching lines...) Expand all
116 ProxyNonThreadSafeRefCount> callback_factory_; 114 ProxyNonThreadSafeRefCount> callback_factory_;
117 115
118 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 116 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
119 }; 117 };
120 118
121 } // namespace proxy 119 } // namespace proxy
122 } // namespace pp 120 } // namespace pp
123 121
124 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 122 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
125 123
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698