Index: cc/base/math_util.h |
diff --git a/cc/base/math_util.h b/cc/base/math_util.h |
index fd6f033da2f08ff4d677e76a7d2e1e734f03e5e7..e743e36807ac465422f2627e66b42ca67b70523c 100644 |
--- a/cc/base/math_util.h |
+++ b/cc/base/math_util.h |
@@ -113,10 +113,10 @@ class CC_EXPORT MathUtil { |
// array are valid. |
static void MapClippedQuad(const gfx::Transform& transform, |
const gfx::QuadF& src_quad, |
- gfx::PointF clipped_quad[8], |
+ gfx::PointF (&clipped_quad)[8], |
danakj
2014/01/15 16:54:46
This change seems unrelated?
r.kasibhatla
2014/01/16 05:05:39
Agree. No need for the change. Reverted the change
|
int* num_vertices_in_clipped_quad); |
- static gfx::RectF ComputeEnclosingRectOfVertices(gfx::PointF vertices[], |
+ static gfx::RectF ComputeEnclosingRectOfVertices(const gfx::PointF* vertices, |
danakj
2014/01/15 16:54:46
This change seems unrelated?
r.kasibhatla
2014/01/16 05:05:39
As we are not modifying the 'vertices' array, we s
danakj
2014/01/16 17:46:12
That's fine.
|
int num_vertices); |
static gfx::RectF ComputeEnclosingClippedRect( |
const HomogeneousCoordinate& h1, |
@@ -130,7 +130,7 @@ class CC_EXPORT MathUtil { |
const gfx::QuadF& quad, |
bool* clipped); |
static gfx::PointF MapPoint(const gfx::Transform& transform, |
- gfx::PointF point, |
+ const gfx::PointF& point, |
bool* clipped); |
static gfx::Point3F MapPoint(const gfx::Transform&, |
const gfx::Point3F&, |
@@ -139,7 +139,7 @@ class CC_EXPORT MathUtil { |
const gfx::QuadF& quad, |
bool* clipped); |
static gfx::PointF ProjectPoint(const gfx::Transform& transform, |
- gfx::PointF point, |
+ const gfx::PointF& point, |
bool* clipped); |
static gfx::Vector2dF ComputeTransform2dScaleComponents(const gfx::Transform&, |
@@ -169,7 +169,7 @@ class CC_EXPORT MathUtil { |
static scoped_ptr<base::Value> AsValue(gfx::SizeF s); |
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::PointF& q); |
static scoped_ptr<base::Value> AsValue(const gfx::QuadF& q); |
static scoped_ptr<base::Value> AsValue(const gfx::RectF& rect); |
static scoped_ptr<base::Value> AsValue(const gfx::Transform& transform); |