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

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

Issue 8333004: Rename InterfaceID to ApiID and move the file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged Created 9 years, 2 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 78 static const ApiID kApiID = API_ID_PPB_SURFACE_3D;
79 79
80 private: 80 private:
81 // Message handlers. 81 // Message handlers.
82 void OnMsgCreate(PP_Instance instance, 82 void OnMsgCreate(PP_Instance instance,
83 PP_Config3D_Dev config, 83 PP_Config3D_Dev config,
84 const std::vector<int32_t>& attribs, 84 const std::vector<int32_t>& attribs,
85 ppapi::HostResource* result); 85 ppapi::HostResource* result);
86 void OnMsgSwapBuffers(const ppapi::HostResource& surface); 86 void OnMsgSwapBuffers(const ppapi::HostResource& surface);
87 // Renderer->plugin message handlers. 87 // Renderer->plugin message handlers.
88 void OnMsgSwapBuffersACK(const ppapi::HostResource& surface, 88 void OnMsgSwapBuffersACK(const ppapi::HostResource& surface,
89 int32_t pp_error); 89 int32_t pp_error);
90 90
91 void SendSwapBuffersACKToPlugin(int32_t result, 91 void SendSwapBuffersACKToPlugin(int32_t result,
92 const ppapi::HostResource& surface_3d); 92 const ppapi::HostResource& surface_3d);
93 93
94 pp::CompletionCallbackFactory<PPB_Surface3D_Proxy, 94 pp::CompletionCallbackFactory<PPB_Surface3D_Proxy,
95 ProxyNonThreadSafeRefCount> callback_factory_; 95 ProxyNonThreadSafeRefCount> callback_factory_;
96 }; 96 };
97 97
98 } // namespace proxy 98 } // namespace proxy
99 } // namespace ppapi 99 } // namespace ppapi
100 100
101 #endif // PPAPI_PPB_SURFACE_3D_PROXY_H_ 101 #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