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

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
« no previous file with comments | « ui/gfx/transform_unittest.cc ('k') | ui/views/controls/slide_out_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/transform_util.cc
diff --git a/ui/gfx/transform_util.cc b/ui/gfx/transform_util.cc
index 54561d73be91189583bb3ff6a3b51c2a8313b0d2..c8ef5736d3e4b51103ff0c73a4d1f82496a74ef2 100644
--- a/ui/gfx/transform_util.cc
+++ b/ui/gfx/transform_util.cc
@@ -99,9 +99,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;
}
« no previous file with comments | « ui/gfx/transform_unittest.cc ('k') | ui/views/controls/slide_out_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698