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

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: 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
Index: ui/gfx/transform_util.cc
diff --git a/ui/gfx/transform_util.cc b/ui/gfx/transform_util.cc
index e5fc4840bd9901aedc452ddb3ef14a3d27d02ff9..17dd7ddbb388a6761c9f3b6e9655e7373ac2eb8d 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;
+ gfx::Transform transform;
transform.ConcatScale(scale, scale);
transform.ConcatTranslate(anchor.x() * (1 - scale),
anchor.y() * (1 - scale));

Powered by Google App Engine
This is Rietveld 408576698