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

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

Issue 1109393002: Pass gfx structs by const ref (gfx::PointF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/layers/texture_layer_impl.cc ('k') | no next file » | 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 85a1f5d98f1094d5992de3c99d66dc21625328d1..7bcf75c82c5343bfbdb75eb741a67e61d11b0e23 100644
--- a/ui/events/gesture_detection/velocity_tracker_unittest.cc
+++ b/ui/events/gesture_detection/velocity_tracker_unittest.cc
@@ -48,7 +48,7 @@ class VelocityTrackerTest : public testing::Test {
protected:
static MockMotionEvent Sample(MotionEvent::Action action,
- gfx::PointF p0,
+ const gfx::PointF& p0,
TimeTicks t0,
gfx::Vector2dF v,
TimeDelta dt) {
@@ -57,7 +57,7 @@ class VelocityTrackerTest : public testing::Test {
}
static void ApplyMovementSequence(VelocityTrackerState* state,
- gfx::PointF p0,
+ const gfx::PointF& p0,
gfx::Vector2dF v,
TimeTicks t0,
TimeDelta t,
@@ -72,7 +72,7 @@ class VelocityTrackerTest : public testing::Test {
}
static void ApplyMovement(VelocityTrackerState* state,
- gfx::PointF p0,
+ const gfx::PointF& p0,
gfx::Vector2dF v,
TimeTicks t0,
TimeDelta t,
« no previous file with comments | « cc/layers/texture_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698