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

Unified Diff: ui/gfx/transform_util.cc

Issue 11087093: Migrate ui::Transform to gfx::Transform (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Should pass trybots this time Created 8 years, 2 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 | « ui/gfx/transform_util.h ('k') | ui/gfx/transform_util_unittest.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 e5fc4840bd9901aedc452ddb3ef14a3d27d02ff9..cae1124630c935bc476cf7b7ed4c9c8a9e36097a 100644
--- a/ui/gfx/transform_util.cc
+++ b/ui/gfx/transform_util.cc
@@ -6,10 +6,10 @@
#include "ui/gfx/point.h"
-namespace ui {
+namespace gfx {
-Transform GetScaleTransform(const gfx::Point& anchor, float scale) {
- ui::Transform transform;
+Transform GetScaleTransform(const Point& anchor, float scale) {
+ Transform transform;
transform.ConcatScale(scale, scale);
transform.ConcatTranslate(anchor.x() * (1 - scale),
anchor.y() * (1 - scale));
« no previous file with comments | « ui/gfx/transform_util.h ('k') | ui/gfx/transform_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698