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

Unified Diff: cc/input/layer_scroll_offset_delegate.h

Issue 130443005: [#5] Pass gfx structs by const ref (gfx::Vector2dF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the 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/input/input_handler.h ('k') | cc/input/page_scale_animation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/layer_scroll_offset_delegate.h
diff --git a/cc/input/layer_scroll_offset_delegate.h b/cc/input/layer_scroll_offset_delegate.h
index 1ee97367be70cf3b91d752de21dba852dbce4edc..034daab432174698aff625d375597841c20e3f80 100644
--- a/cc/input/layer_scroll_offset_delegate.h
+++ b/cc/input/layer_scroll_offset_delegate.h
@@ -19,11 +19,11 @@ class LayerScrollOffsetDelegate {
public:
// This is called by the compositor to notify the delegate what is the upper
// total scroll offset bound.
- virtual void SetMaxScrollOffset(gfx::Vector2dF max_scroll_offset) = 0;
+ virtual void SetMaxScrollOffset(const gfx::Vector2dF& max_scroll_offset) = 0;
// This is called by the compositor when the scroll offset of the layer would
// have otherwise changed.
- virtual void SetTotalScrollOffset(gfx::Vector2dF new_value) = 0;
+ virtual void SetTotalScrollOffset(const gfx::Vector2dF& new_value) = 0;
// This is called by the compositor to query the current scroll offset of the
// layer.
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/input/page_scale_animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698