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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 945393002: Adding support for diagonal scrolling to telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding telemetry support for diagonal scrolling. Also added a telemetry test to pinchzoom in and th… Created 5 years, 10 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/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index 68221886255898ee802d9565de7841ad6f73cf27..7b81b68e57d5db65dc8d777d0355f4c896f284b6 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -366,6 +366,22 @@ bool BeginSmoothScroll(v8::Isolate* isolate,
distance.set_x(-distance_length);
else if (direction == "left")
distance.set_x(distance_length);
+ else if (direction == "upleft") {
+ distance.set_y(distance_length);
+ distance.set_x(distance_length);
+ }
+ else if (direction == "upright") {
jdduke (slow) 2015/02/26 01:05:35 Nit: else should start on the same line as the pre
cblume 2015/02/26 20:22:00 Oh, thank you. I've fixed this locally and will up
+ distance.set_y(distance_length);
+ distance.set_x(-distance_length);
+ }
+ else if (direction == "downleft") {
+ distance.set_y(-distance_length);
+ distance.set_x(distance_length);
+ }
+ else if (direction == "downright") {
+ distance.set_y(-distance_length);
+ distance.set_x(-distance_length);
+ }
else {
return false;
}
« no previous file with comments | « no previous file | tools/perf/benchmarks/smoothness.py » ('j') | tools/perf/page_sets/tough_pinch_zoom_diagonal_scrolling_cases.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698