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

Unified Diff: ui/events/gesture_detection/velocity_tracker_unittest.cc

Issue 1112813003: Pass gfx structs by const ref (gfx::Vector2d/F) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing 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 | « ui/compositor/layer.cc ('k') | ui/events/ozone/evdev/device_event_dispatcher_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/velocity_tracker_unittest.cc
diff --git a/ui/events/gesture_detection/velocity_tracker_unittest.cc b/ui/events/gesture_detection/velocity_tracker_unittest.cc
index 7bcf75c82c5343bfbdb75eb741a67e61d11b0e23..215d93e34ce6803849f1a32821b7af6d059c897a 100644
--- a/ui/events/gesture_detection/velocity_tracker_unittest.cc
+++ b/ui/events/gesture_detection/velocity_tracker_unittest.cc
@@ -50,7 +50,7 @@ class VelocityTrackerTest : public testing::Test {
static MockMotionEvent Sample(MotionEvent::Action action,
const gfx::PointF& p0,
TimeTicks t0,
- gfx::Vector2dF v,
+ const gfx::Vector2dF& v,
TimeDelta dt) {
const gfx::PointF p = p0 + ScaleVector2d(v, dt.InSecondsF());
return MockMotionEvent(action, t0 + dt, p.x(), p.y());
@@ -58,7 +58,7 @@ class VelocityTrackerTest : public testing::Test {
static void ApplyMovementSequence(VelocityTrackerState* state,
const gfx::PointF& p0,
- gfx::Vector2dF v,
+ const gfx::Vector2dF& v,
TimeTicks t0,
TimeDelta t,
size_t samples) {
@@ -73,7 +73,7 @@ class VelocityTrackerTest : public testing::Test {
static void ApplyMovement(VelocityTrackerState* state,
const gfx::PointF& p0,
- gfx::Vector2dF v,
+ const gfx::Vector2dF& v,
TimeTicks t0,
TimeDelta t,
size_t samples) {
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/events/ozone/evdev/device_event_dispatcher_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698