Index: cc/layers/layer.cc |
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc |
index 7110dc70812c7987694b81fb8549345cc0c88d2d..81dc222fcd467d327bbb5c59a679f4396fd463f4 100644 |
--- a/cc/layers/layer.cc |
+++ b/cc/layers/layer.cc |
@@ -376,7 +376,7 @@ void Layer::RequestCopyOfOutput( |
SetNeedsCommit(); |
} |
-void Layer::SetAnchorPoint(gfx::PointF anchor_point) { |
+void Layer::SetAnchorPoint(const gfx::PointF& anchor_point) { |
DCHECK(IsPropertyChangeAllowed()); |
if (anchor_point_ == anchor_point) |
return; |
@@ -581,7 +581,7 @@ void Layer::SetContentsOpaque(bool opaque) { |
SetNeedsCommit(); |
} |
-void Layer::SetPosition(gfx::PointF position) { |
+void Layer::SetPosition(const gfx::PointF& position) { |
DCHECK(IsPropertyChangeAllowed()); |
if (position_ == position) |
return; |