| Index: ui/gfx/transform.h
|
| diff --git a/ui/gfx/transform.h b/ui/gfx/transform.h
|
| index 9f4db734419d0420eafafbb9a7b6cb4ecbceb7d1..60c3d5c3fa3acc0444d422c689c29538b487506c 100644
|
| --- a/ui/gfx/transform.h
|
| +++ b/ui/gfx/transform.h
|
| @@ -14,6 +14,7 @@
|
|
|
| namespace gfx {
|
|
|
| +class BoxF;
|
| class RectF;
|
| class Point;
|
| class Point3F;
|
| @@ -194,17 +195,28 @@ class GFX_EXPORT Transform {
|
| // transformation can be inverted. Rounds the result to the nearest point.
|
| bool TransformPointReverse(Point* point) const;
|
|
|
| - // Applies transformation on the rectangle. Returns true if the transformed
|
| - // rectangle was axis aligned. If it returns false, rect will be the
|
| - // smallest axis aligned bounding box containing the transformed rect.
|
| + // Applies transformation on the given rect. After the function completes,
|
| + // |rect| will be the smallest axis aligned bounding rect containing the
|
| + // transformed rect.
|
| void TransformRect(RectF* rect) const;
|
|
|
| - // Applies the reverse transformation on the rectangle. Returns true if
|
| - // the transformed rectangle was axis aligned. If it returns false,
|
| - // rect will be the smallest axis aligned bounding box containing the
|
| - // transformed rect.
|
| + // Applies the reverse transformation on the given rect. After the function
|
| + // completes, |rect| will be the smallest axis aligned bounding rect
|
| + // containing the transformed rect. Returns false if the matrix cannot be
|
| + // inverted.
|
| bool TransformRectReverse(RectF* rect) const;
|
|
|
| + // Applies transformation on the given box. After the function completes,
|
| + // |box| will be the smallest axis aligned bounding box containing the
|
| + // transformed box.
|
| + void TransformBox(BoxF* box) const;
|
| +
|
| + // Applies the reverse transformation on the given box. After the function
|
| + // completes, |box| will be the smallest axis aligned bounding box
|
| + // containing the transformed box. Returns false if the matrix cannot be
|
| + // inverted.
|
| + bool TransformBoxReverse(BoxF* box) const;
|
| +
|
| // Decomposes |this| and |from|, interpolates the decomposed values, and
|
| // sets |this| to the reconstituted result. Returns false if either matrix
|
| // can't be decomposed. Uses routines described in this spec:
|
|
|