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

Unified Diff: ash/rotator/window_rotation.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-gfx: . Created 5 years, 3 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: ash/rotator/window_rotation.cc
diff --git a/ash/rotator/window_rotation.cc b/ash/rotator/window_rotation.cc
index a82d4ac0b6b3d8d73484a461f2d445588d74557a..b64477d976154d42429f5d3b1fa0c83c5192fd80 100644
--- a/ash/rotator/window_rotation.cc
+++ b/ash/rotator/window_rotation.cc
@@ -83,8 +83,8 @@ void WindowRotation::InitTransform(ui::Layer* layer) {
scoped_ptr<ui::InterpolatedTransform> translation(
new ui::InterpolatedTranslation(
- gfx::Point(0, 0), gfx::Point(new_pivot.x() - old_pivot.x(),
- new_pivot.y() - old_pivot.y())));
+ gfx::PointF(), gfx::PointF(new_pivot.x() - old_pivot.x(),
+ new_pivot.y() - old_pivot.y())));
float scale_factor = 0.9f;
scoped_ptr<ui::InterpolatedTransform> scale_down(

Powered by Google App Engine
This is Rietveld 408576698