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

Unified Diff: content/browser/android/overscroll_glow.cc

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
Index: content/browser/android/overscroll_glow.cc
diff --git a/content/browser/android/overscroll_glow.cc b/content/browser/android/overscroll_glow.cc
index 61ffc08b3ae2b73cbf66f2cbc11d09b7c893c4c6..6842becafa39893ffd696d041e0ceb22ff685c41 100644
--- a/content/browser/android/overscroll_glow.cc
+++ b/content/browser/android/overscroll_glow.cc
@@ -112,10 +112,10 @@ float OverscrollGlow::GetVisibleAlpha() const {
}
bool OverscrollGlow::OnOverscrolled(base::TimeTicks current_time,
- gfx::Vector2dF accumulated_overscroll,
- gfx::Vector2dF overscroll_delta,
- gfx::Vector2dF velocity,
- gfx::Vector2dF displacement) {
+ const gfx::Vector2dF& accumulated_overscroll,
+ gfx::Vector2dF overscroll_delta,
+ gfx::Vector2dF velocity,
+ const gfx::Vector2dF& displacement) {
// The size of the glow determines the relative effect of the inputs; an
// empty-sized effect is effectively disabled.
if (viewport_size_.IsEmpty())
« no previous file with comments | « content/browser/android/overscroll_glow.h ('k') | content/browser/renderer_host/input/input_router_impl_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698