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

Unified Diff: webkit/plugins/ppapi/ppb_graphics_3d_impl.h

Issue 7206016: Convert most remaining resources to use the API/thunk system. The significant (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_graphics_2d_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_graphics_3d_impl.h
===================================================================
--- webkit/plugins/ppapi/ppb_graphics_3d_impl.h (revision 89672)
+++ webkit/plugins/ppapi/ppb_graphics_3d_impl.h (working copy)
@@ -5,27 +5,37 @@
#ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
#define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
-#include "ppapi/c/dev/ppb_graphics_3d_dev.h"
+#include "ppapi/thunk/ppb_graphics_3d_api.h"
#include "webkit/plugins/ppapi/resource.h"
namespace webkit {
namespace ppapi {
-class PPB_Graphics3D_Impl : public Resource {
+class PPB_Graphics3D_Impl : public Resource,
+ public ::ppapi::thunk::PPB_Graphics3D_API {
public:
- explicit PPB_Graphics3D_Impl(PluginInstance* instance);
virtual ~PPB_Graphics3D_Impl();
- static const PPB_Graphics3D_Dev* GetInterface();
+ static PP_Resource Create(PP_Instance instance,
+ PP_Config3D_Dev config,
+ PP_Resource share_context,
+ const int32_t* attrib_list);
- // Resource override.
- virtual PPB_Graphics3D_Impl* AsPPB_Graphics3D_Impl();
+ // ResourceObjectBase override.
+ virtual ::ppapi::thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE;
+ // PPB_Graphics3D_API implementation.
+ virtual int32_t GetAttribs(int32_t* attrib_list) OVERRIDE;
+ virtual int32_t SetAttribs(int32_t* attrib_list) OVERRIDE;
+ virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE;
+
+ private:
+ explicit PPB_Graphics3D_Impl(PluginInstance* instance);
+
bool Init(PP_Config3D_Dev config,
PP_Resource share_context,
const int32_t* attrib_list);
- private:
DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
};
« no previous file with comments | « webkit/plugins/ppapi/ppb_graphics_2d_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698