Index: cc/layers/layer_impl.cc |
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc |
index 74a9b8468d79c673288fb29cb86459972b99d2c9..c5b67d6f7cc3543fa3359d34c70f378230d7df6b 100644 |
--- a/cc/layers/layer_impl.cc |
+++ b/cc/layers/layer_impl.cc |
@@ -410,7 +410,7 @@ void LayerImpl::ApplyScrollDeltasSinceBeginMainFrame() { |
} |
InputHandler::ScrollStatus LayerImpl::TryScroll( |
- gfx::PointF screen_space_point, |
+ const gfx::PointF& screen_space_point, |
InputHandler::ScrollInputType type) const { |
if (should_scroll_on_main_thread()) { |
TRACE_EVENT0("cc", "LayerImpl::TryScroll: Failed ShouldScrollOnMainThread"); |
@@ -791,7 +791,7 @@ void LayerImpl::SetHideLayerAndSubtree(bool hide) { |
NoteLayerPropertyChangedForSubtree(); |
} |
-void LayerImpl::SetAnchorPoint(gfx::PointF anchor_point) { |
+void LayerImpl::SetAnchorPoint(const gfx::PointF& anchor_point) { |
if (anchor_point_ == anchor_point) |
return; |
@@ -910,7 +910,7 @@ void LayerImpl::SetIsRootForIsolatedGroup(bool root) { |
is_root_for_isolated_group_ = root; |
} |
-void LayerImpl::SetPosition(gfx::PointF position) { |
+void LayerImpl::SetPosition(const gfx::PointF& position) { |
if (position_ == position) |
return; |