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

Unified Diff: content/browser/renderer_host/input/input_router_config_helper.cc

Issue 2689633003: Disable touch ack timeout if MT responsiveness scroll intervention on. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a41f0ecea59ce11f6700ab7140a4ed05cce896e9..91bd333e75e5651c7b5868038959622e57ea3618 100644
--- a/content/browser/renderer_host/input/input_router_config_helper.cc
+++ b/content/browser/renderer_host/input/input_router_config_helper.cc
@@ -5,7 +5,9 @@
#include "content/browser/renderer_host/input/input_router_config_helper.h"
#include "base/command_line.h"
+#include "base/feature_list.h"
#include "build/build_config.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
#include "ui/events/gesture_detection/gesture_detector.h"
@@ -28,8 +30,12 @@ TouchEventQueue::Config GetTouchEventQueueConfig() {
base::TimeDelta::FromMilliseconds(kMobileTouchAckTimeoutDelayMs);
#if defined(OS_ANDROID)
- // For historical reasons only Android enables the touch ack timeout.
- config.touch_ack_timeout_supported = true;
+ // For historical reasons only Android enables the touch ack timeout. The
+ // touch ack timeout will be replaced by an intervention which forces events
+ // to be non-blocking if the main thread is busy. This is currently behind a
+ // flag.
+ config.touch_ack_timeout_supported = !base::FeatureList::IsEnabled(
+ features::kMainThreadBusyScrollIntervention);
#else
config.touch_ack_timeout_supported = false;
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698