diff options
Diffstat (limited to 'cc/base/math_util.h')
-rw-r--r-- | cc/base/math_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/base/math_util.h b/cc/base/math_util.h index baceb70..fd6f033 100644 --- a/cc/base/math_util.h +++ b/cc/base/math_util.h @@ -100,7 +100,7 @@ class CC_EXPORT MathUtil { // These functions return the axis-aligned rect that encloses the correctly // clipped, transformed polygon. static gfx::Rect MapClippedRect(const gfx::Transform& transform, - gfx::Rect rect); + const gfx::Rect& rect); static gfx::RectF MapClippedRect(const gfx::Transform& transform, const gfx::RectF& rect); static gfx::RectF ProjectClippedRect(const gfx::Transform& transform, @@ -167,7 +167,7 @@ class CC_EXPORT MathUtil { // Conversion to value. static scoped_ptr<base::Value> AsValue(gfx::Size s); static scoped_ptr<base::Value> AsValue(gfx::SizeF s); - static scoped_ptr<base::Value> AsValue(gfx::Rect r); + static scoped_ptr<base::Value> AsValue(const gfx::Rect& r); static bool FromValue(const base::Value*, gfx::Rect* out_rect); static scoped_ptr<base::Value> AsValue(gfx::PointF q); static scoped_ptr<base::Value> AsValue(const gfx::QuadF& q); |