| Index: cc/base/math_util.h
|
| diff --git a/cc/base/math_util.h b/cc/base/math_util.h
|
| index 486a654a5e49a76e9483f350760a61b500dc9732..5174fe59235764cec76d75ac2ac8971ed4ecdcd3 100644
|
| --- a/cc/base/math_util.h
|
| +++ b/cc/base/math_util.h
|
| @@ -115,6 +115,11 @@ class CC_EXPORT MathUtil {
|
| static gfx::RectF ProjectClippedRect(const gfx::Transform& transform,
|
| const gfx::RectF& rect);
|
|
|
| + // This function is only valid when the transform preserves 2d axis
|
| + // alignment and the resulting rect will not be clipped.
|
| + static gfx::Rect MapEnclosedNonClippedRect(const gfx::Transform& transform,
|
| + const gfx::Rect& rect);
|
| +
|
| // Returns an array of vertices that represent the clipped polygon. After
|
| // returning, indexes from 0 to num_vertices_in_clipped_quad are valid in the
|
| // clipped_quad array. Note that num_vertices_in_clipped_quad may be zero,
|
|
|