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

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

Issue 10704198: Scale to DIPs in ppb_graphics2d_impl for proper invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move ScaleBounds back out of gfx::Rect Created 8 years, 5 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
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 cec39c61e5e24785525c456a9a8fe03adfd980d7..184f3a3b0c1040eeb6fdcbe5e1969b3dad756cf3 100644
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
@@ -75,6 +75,8 @@ class PPB_Graphics2D_Impl : public ::ppapi::Resource,
PPB_ImageData_Impl* image_data() { return image_data_.get(); }
+ static bool ScaleMetrics(float scale, gfx::Rect& rect, int* dx, int* dy);
Wez 2012/07/19 01:33:37 gfx::Rect& -> gfx::Rect* since it's an in/out-para
Josh Horwich 2012/07/19 22:22:44 Done.
+
private:
explicit PPB_Graphics2D_Impl(PP_Instance instance);
« no previous file with comments | « no previous file | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc » ('j') | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698