| 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 591cd45e760bc63b6ed74645670aabf5ba452ec5..03fde834fcff3e8e465d2b3c144cbc2b3667850e 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);
|
|
|