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

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

Issue 11369144: ui: Make gfx::Point::Scale() mutate the class, similar to gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for aura 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
« cc/layer_impl.cc ('K') | « webkit/glue/webcursor_aurax11.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
index e6831a7f8881b30c100a2e37e63095bc27c32a93..0c0e30bad48bb973e6b4ab143fdad939cf07954b 100644
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
@@ -649,14 +649,14 @@ bool PPB_Graphics2D_Impl::ConvertToLogicalPixels(float scale,
if (delta) {
gfx::Point original_delta = *delta;
float inverse_scale = 1.0f / scale;
- *delta = gfx::ToFlooredPoint(delta->Scale(scale));
+ *delta = gfx::ToFlooredPoint(gfx::ScalePoint(*delta, scale));
gfx::Rect inverse_scaled_rect =
gfx::ToEnclosingRect(gfx::ScaleRect(*op_rect, inverse_scale));
if (original_rect != inverse_scaled_rect)
return false;
gfx::Point inverse_scaled_point =
- gfx::ToFlooredPoint(delta->Scale(inverse_scale));
+ gfx::ToFlooredPoint(gfx::ScalePoint(*delta, inverse_scale));
if (original_delta != inverse_scaled_point)
return false;
}
« cc/layer_impl.cc ('K') | « webkit/glue/webcursor_aurax11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698