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

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

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 1 month 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/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/resource_creation_impl.h » ('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 5419daa7726b3b50ca968e4591d185558fe3f651..39461b8af29342fc8e7ad9bc8faa4964d984a684 100644
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
@@ -22,20 +22,25 @@ class Point;
class Rect;
}
+namespace content {
+class PepperGraphics2DHost;
+}
+
namespace webkit {
namespace ppapi {
class PPB_ImageData_Impl;
class PluginInstance;
-class PPB_Graphics2D_Impl : public ::ppapi::Resource,
- public ::ppapi::thunk::PPB_Graphics2D_API {
+class WEBKIT_PLUGINS_EXPORT PPB_Graphics2D_Impl :
+ public ::ppapi::Resource,
+ public ::ppapi::thunk::PPB_Graphics2D_API {
public:
virtual ~PPB_Graphics2D_Impl();
- WEBKIT_PLUGINS_EXPORT static PP_Resource Create(PP_Instance instance,
- const PP_Size& size,
- PP_Bool is_always_opaque);
+ static PP_Resource Create(PP_Instance instance,
+ const PP_Size& size,
+ PP_Bool is_always_opaque);
bool is_always_opaque() const { return is_always_opaque_; }
@@ -83,9 +88,9 @@ class PPB_Graphics2D_Impl : public ::ppapi::Resource,
// pixels as well for scrolling cases. Returns false for scrolling cases where
// scaling either |op_rect| or |delta| would require scrolling to fall back to
// invalidation due to rounding errors, true otherwise.
- WEBKIT_PLUGINS_EXPORT static bool ConvertToLogicalPixels(float scale,
- gfx::Rect* op_rect,
- gfx::Point* delta);
+ static bool ConvertToLogicalPixels(float scale,
+ gfx::Rect* op_rect,
+ gfx::Point* delta);
private:
explicit PPB_Graphics2D_Impl(PP_Instance instance);
@@ -206,6 +211,7 @@ class PPB_Graphics2D_Impl : public ::ppapi::Resource,
base::WeakPtrFactory<PPB_Graphics2D_Impl> weak_ptr_factory_;
+ friend class content::PepperGraphics2DHost;
DISALLOW_COPY_AND_ASSIGN(PPB_Graphics2D_Impl);
};
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/resource_creation_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698