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

Unified Diff: Source/platform/scheduler/Scheduler.h

Issue 554693004: Adds a didReceiveInputEvent api to the blink scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added some more tests Created 6 years, 3 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: Source/platform/scheduler/Scheduler.h
diff --git a/Source/platform/scheduler/Scheduler.h b/Source/platform/scheduler/Scheduler.h
index ead89bf3286a1c662b6b980ad84f09991cf30bad..5c91daf6c0e7395bf0487a996eb8cae938c8802b 100644
--- a/Source/platform/scheduler/Scheduler.h
+++ b/Source/platform/scheduler/Scheduler.h
@@ -43,6 +43,9 @@ public:
void postTask(const TraceLocation&, const Task&); // For generic (low priority) tasks.
void postIdleTask(const TraceLocation&, const IdleTask&); // For non-critical tasks which may be reordered relative to other task types.
+ // Tells the scheduler that the system received an input event. This causes the scheduler to go into low latency mode for a little while.
+ void didReceiveInputEvent();
+
// Returns true if we're in low latency mode and there is high priority work pending on the
// main thread and the caller should yield to let the scheduler service that work.
// Can be called on any thread.

Powered by Google App Engine
This is Rietveld 408576698