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

Side by Side Diff: ppapi/proxy/ppb_surface_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_pdf_proxy.cc ('k') | ppapi/proxy/ppb_surface_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_PPB_SURFACE_3D_PROXY_H_ 5 #ifndef PPAPI_PPB_SURFACE_3D_PROXY_H_
6 #define PPAPI_PPB_SURFACE_3D_PROXY_H_ 6 #define PPAPI_PPB_SURFACE_3D_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // In the plugin, this is the current callback set for Flushes. When the 57 // In the plugin, this is the current callback set for Flushes. When the
58 // callback function pointer is non-NULL, we're waiting for a flush ACK. 58 // callback function pointer is non-NULL, we're waiting for a flush ACK.
59 PP_CompletionCallback current_flush_callback_; 59 PP_CompletionCallback current_flush_callback_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(Surface3D); 61 DISALLOW_COPY_AND_ASSIGN(Surface3D);
62 }; 62 };
63 63
64 class PPB_Surface3D_Proxy : public InterfaceProxy { 64 class PPB_Surface3D_Proxy : public InterfaceProxy {
65 public: 65 public:
66 PPB_Surface3D_Proxy(Dispatcher* dispatcher); 66 PPB_Surface3D_Proxy(Dispatcher* dispatcher, const void* target_interface);
67 virtual ~PPB_Surface3D_Proxy(); 67 virtual ~PPB_Surface3D_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, 72 PP_Config3D_Dev config,
73 const int32_t* attrib_list); 73 const int32_t* attrib_list);
74 74
75 // InterfaceProxy implementation. 75 // InterfaceProxy implementation.
76 virtual bool OnMessageReceived(const IPC::Message& msg); 76 virtual bool OnMessageReceived(const IPC::Message& msg);
77 77
78 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_SURFACE_3D;
79
80 private: 78 private:
81 // Message handlers. 79 // Message handlers.
82 void OnMsgCreate(PP_Instance instance, 80 void OnMsgCreate(PP_Instance instance,
83 PP_Config3D_Dev config, 81 PP_Config3D_Dev config,
84 const std::vector<int32_t>& attribs, 82 const std::vector<int32_t>& attribs,
85 ppapi::HostResource* result); 83 ppapi::HostResource* result);
86 void OnMsgSwapBuffers(const ppapi::HostResource& surface); 84 void OnMsgSwapBuffers(const ppapi::HostResource& surface);
87 // Renderer->plugin message handlers. 85 // Renderer->plugin message handlers.
88 void OnMsgSwapBuffersACK(const ppapi::HostResource& surface, 86 void OnMsgSwapBuffersACK(const ppapi::HostResource& surface,
89 int32_t pp_error); 87 int32_t pp_error);
90 88
91 void SendSwapBuffersACKToPlugin(int32_t result, 89 void SendSwapBuffersACKToPlugin(int32_t result,
92 const ppapi::HostResource& surface_3d); 90 const ppapi::HostResource& surface_3d);
93 91
94 pp::CompletionCallbackFactory<PPB_Surface3D_Proxy, 92 pp::CompletionCallbackFactory<PPB_Surface3D_Proxy,
95 ProxyNonThreadSafeRefCount> callback_factory_; 93 ProxyNonThreadSafeRefCount> callback_factory_;
96 }; 94 };
97 95
98 } // namespace proxy 96 } // namespace proxy
99 } // namespace ppapi 97 } // namespace ppapi
100 98
101 #endif // PPAPI_PPB_SURFACE_3D_PROXY_H_ 99 #endif // PPAPI_PPB_SURFACE_3D_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_pdf_proxy.cc ('k') | ppapi/proxy/ppb_surface_3d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698