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

Unified Diff: cc/layers/layer.h

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/debug/overdraw_metrics.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 46b32335b635791e314fd6895055f6a887414ec1..a4d5ddd279528ba439608ec535e76698b1f7ec71 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -102,7 +102,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
return !copy_requests_.empty();
}
- void SetAnchorPoint(gfx::PointF anchor_point);
+ void SetAnchorPoint(const gfx::PointF& anchor_point);
gfx::PointF anchor_point() const { return anchor_point_; }
void SetAnchorPointZ(float anchor_point_z);
@@ -165,7 +165,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual void SetContentsOpaque(bool opaque);
bool contents_opaque() const { return contents_opaque_; }
- void SetPosition(gfx::PointF position);
+ void SetPosition(const gfx::PointF& position);
gfx::PointF position() const { return position_; }
void SetIsContainerForFixedPositionLayers(bool container);
« no previous file with comments | « cc/debug/overdraw_metrics.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698