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

Unified Diff: ash/magnifier/magnification_controller.cc

Issue 11418040: gfx::Transform API clean-up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | « ash/launcher/overflow_button.cc ('k') | ash/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/magnifier/magnification_controller.cc
diff --git a/ash/magnifier/magnification_controller.cc b/ash/magnifier/magnification_controller.cc
index d1329766fc2498c4efd66decf248b544362be1db..698f0500047ae53c4811388fe71d5c1ddfd1b840 100644
--- a/ash/magnifier/magnification_controller.cc
+++ b/ash/magnifier/magnification_controller.cc
@@ -204,8 +204,8 @@ bool MagnificationControllerImpl::RedrawDIP(const gfx::Point& position_in_dip,
gfx::Transform transform;
// Flips the signs intentionally to convert them from the position of the
// magnification window.
- transform.ConcatTranslate(-origin_.x(), -origin_.y());
- transform.ConcatScale(scale_, scale_);
+ transform.Scale(scale_, scale_);
+ transform.Translate(-origin_.x(), -origin_.y());
ui::ScopedLayerAnimationSettings settings(
root_window_->layer()->GetAnimator());
« no previous file with comments | « ash/launcher/overflow_button.cc ('k') | ash/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698