Index: content/browser/renderer_host/input/input_router_config_helper.cc |
diff --git a/content/browser/renderer_host/input/input_router_config_helper.cc b/content/browser/renderer_host/input/input_router_config_helper.cc |
index 24a4354a60f2a2cc1208e448f63433e964c6e6d7..7b91314b9909a7052703aef008431928ae6d8d10 100644 |
--- a/content/browser/renderer_host/input/input_router_config_helper.cc |
+++ b/content/browser/renderer_host/input/input_router_config_helper.cc |
@@ -5,6 +5,7 @@ |
#include "content/browser/renderer_host/input/input_router_config_helper.h" |
#include "base/command_line.h" |
+#include "cc/base/switches.h" |
#include "content/public/common/content_switches.h" |
#include "ui/events/gesture_detection/gesture_configuration.h" |
#include "ui/events/gesture_detection/gesture_detector.h" |
@@ -70,6 +71,13 @@ InputRouterImpl::Config GetInputRouterConfigForPlatform() { |
InputRouterImpl::Config config; |
config.gesture_config = GetGestureEventQueueConfig(); |
config.touch_config = GetTouchEventQueueConfig(); |
+#if !defined(OS_ANDROID) |
+ config.buffer_wheel_events_until_flush = |
+ base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ cc::switches::kEnableBeginFrameScheduling); |
+#else |
+ config.buffer_wheel_events_until_flush = false; |
+#endif |
return config; |
} |