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

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

Issue 7669055: Remove webkit::ppapi::Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nulls auditeed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_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_2d_impl.h
diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.h b/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
index 2c96584be74f02f05bdf4a0faf5093b8b3768496..fc36f187f7dd8770015883735f9498e3ed813c57 100644
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
@@ -10,9 +10,9 @@
#include "base/basictypes.h"
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/ppb_graphics_2d.h"
+#include "ppapi/shared_impl/resource.h"
#include "ppapi/thunk/ppb_graphics_2d_api.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h"
-#include "webkit/plugins/ppapi/resource.h"
struct PPB_Graphics2D;
@@ -27,13 +27,12 @@ class PPB_ImageData_Impl;
class PluginInstance;
class PluginModule;
-class PPB_Graphics2D_Impl
- : public Resource,
- public ::ppapi::thunk::PPB_Graphics2D_API {
+class PPB_Graphics2D_Impl : public ::ppapi::Resource,
+ public ::ppapi::thunk::PPB_Graphics2D_API {
public:
virtual ~PPB_Graphics2D_Impl();
- static PP_Resource Create(PluginInstance* instance,
+ static PP_Resource Create(PP_Instance instance,
const PP_Size& size,
PP_Bool is_always_opaque);
@@ -75,7 +74,7 @@ class PPB_Graphics2D_Impl
PPB_ImageData_Impl* image_data() { return image_data_.get(); }
private:
- explicit PPB_Graphics2D_Impl(PluginInstance* instance);
+ explicit PPB_Graphics2D_Impl(PP_Instance instance);
bool Init(int width, int height, bool is_always_opaque);
« no previous file with comments | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698