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

Unified Diff: ash/rotator/screen_rotation.cc

Issue 23724024: Refactor TransformPoint{,Reverse}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and resolve conflicts. Created 7 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
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/rotator/screen_rotation.cc
diff --git a/ash/rotator/screen_rotation.cc b/ash/rotator/screen_rotation.cc
index 248394a29388faacb2456ebd186c4452192529dc..9352d81ea342e0e47c7dd748a82e85595028422b 100644
--- a/ash/rotator/screen_rotation.cc
+++ b/ash/rotator/screen_rotation.cc
@@ -73,9 +73,9 @@ void ScreenRotation::InitTransform(ui::Layer* layer) {
}
// Convert points to world space.
- current_transform.TransformPoint(old_pivot);
- current_transform.TransformPoint(new_pivot);
- current_transform.TransformPoint(new_origin_);
+ current_transform.TransformPoint(&old_pivot);
+ current_transform.TransformPoint(&new_pivot);
+ current_transform.TransformPoint(&new_origin_);
scoped_ptr<ui::InterpolatedTransform> rotation(
new ui::InterpolatedTransformAboutPivot(
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698