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

Unified Diff: ui/gfx/transform_util.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
Index: ui/gfx/transform_util.cc
diff --git a/ui/gfx/transform_util.cc b/ui/gfx/transform_util.cc
index 9a1551a9cb33e44bca4bd46f7f43fc21edf3ecc4..dccebd6aed2a448e21d3c3add0efc23c99317e55 100644
--- a/ui/gfx/transform_util.cc
+++ b/ui/gfx/transform_util.cc
@@ -111,9 +111,9 @@ bool Normalize(SkMatrix44& m) {
Transform GetScaleTransform(const Point& anchor, float scale) {
Transform transform;
- transform.ConcatScale(scale, scale);
- transform.ConcatTranslate(anchor.x() * (1 - scale),
- anchor.y() * (1 - scale));
+ transform.Translate(anchor.x() * (1 - scale),
+ anchor.y() * (1 - scale));
+ transform.Scale(scale, scale);
return transform;
}

Powered by Google App Engine
This is Rietveld 408576698