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

Unified Diff: cc/layers/layer_impl.h

Issue 1115653002: Pass gfx structs by const ref(gfx::Vector2D/F) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing some build issue Created 5 years, 8 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/animation/scroll_offset_animation_curve.cc ('k') | cc/resources/texture_uploader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index f3eb4cea90fca7de26b3025c93c5c09f2176ba04..6fc5cb296f9e10ce6269dd96c63decdcfb285fa2 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -166,7 +166,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
int transform_tree_index() const { return transform_tree_index_; }
int opacity_tree_index() const { return opacity_tree_index_; }
- void set_offset_to_transform_parent(gfx::Vector2dF offset) {
+ void set_offset_to_transform_parent(const gfx::Vector2dF& offset) {
offset_to_transform_parent_ = offset;
SetNeedsPushProperties();
}
« no previous file with comments | « cc/animation/scroll_offset_animation_curve.cc ('k') | cc/resources/texture_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698