| 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 1f2369df8a7fd79cd923efea81ba9ecc622b5b4c..d082f8849bac8ed9b422e697ca2cbdc29d9d67b0 100644
|
| --- a/content/renderer/gpu/gpu_benchmarking_extension.cc
|
| +++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
|
| @@ -367,7 +367,19 @@ bool BeginSmoothScroll(v8::Isolate* isolate,
|
| distance.set_x(-distance_length);
|
| else if (direction == "left")
|
| distance.set_x(distance_length);
|
| - else {
|
| + else if (direction == "upleft") {
|
| + distance.set_y(distance_length);
|
| + distance.set_x(distance_length);
|
| + } else if (direction == "upright") {
|
| + 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;
|
| }
|
| gesture_params->distances.push_back(distance);
|
|
|