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

Unified Diff: cc/layers/layer.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.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698