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

Unified Diff: third_party/WebKit/Source/platform/WebFrameScheduler.h

Issue 2895673002: [scheduler] Add unthrottled-by-blockable task queue to fix touch latency regression. (Closed)
Patch Set: Created 3 years, 7 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: third_party/WebKit/Source/platform/WebFrameScheduler.h
diff --git a/third_party/WebKit/Source/platform/WebFrameScheduler.h b/third_party/WebKit/Source/platform/WebFrameScheduler.h
index f1ea4505332ce61291aa6c0abb5be50199cd01e6..209a5836e042a2a5ebd7c6b2aa7c60efa38ff24f 100644
--- a/third_party/WebKit/Source/platform/WebFrameScheduler.h
+++ b/third_party/WebKit/Source/platform/WebFrameScheduler.h
@@ -66,6 +66,13 @@ class WebFrameScheduler {
// WebTaskRunner.
virtual RefPtr<WebTaskRunner> UnthrottledTaskRunner() = 0;
+ // Retuns the WebTaskRunner for tasks which should not be suspended or
+ // throttled, but should be blocked during user gesture.
+ // This is a temporary task runner needed for a fix for touch latency
+ // regression. All tasks from it should be moved to suspendable or
+ // unthrottled task runner.
+ virtual RefPtr<WebTaskRunner> GeneralTaskRunner() = 0;
+
// Returns the parent WebViewScheduler.
virtual WebViewScheduler* GetWebViewScheduler() { return nullptr; }

Powered by Google App Engine
This is Rietveld 408576698