Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: cc/layers/layer_impl.cc

Issue 139233002: [#4] Pass gfx structs by const ref (gfx::PointF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected as per review comments! Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698