Index: ui/gfx/transform_util.h |
diff --git a/ui/gfx/transform_util.h b/ui/gfx/transform_util.h |
index a77ded28f73c5021d75f97fd92708dc69d550ca4..7a0997f75d214c442d69780f53c08babbb94fec8 100644 |
--- a/ui/gfx/transform_util.h |
+++ b/ui/gfx/transform_util.h |
@@ -16,6 +16,11 @@ class Rect; |
// Returns a scale transform at |anchor| point. |
GFX_EXPORT Transform GetScaleTransform(const Point& anchor, float scale); |
+// Returns a translate and scale transform which transforms from one rect to |
Matt Giuca
2014/11/04 01:05:17
Drop the "translate and scale" --- that's an imple
calamity
2014/11/04 01:40:29
Done.
|
+// another. |
+GFX_EXPORT Transform |
+ GetRectTransform(const gfx::Rect& from, const gfx::Rect& to); |
+ |
// Contains the components of a factored transform. These components may be |
// blended and recomposed. |
struct GFX_EXPORT DecomposedTransform { |