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

Unified Diff: third_party/WebKit/public/platform/scheduler/base/task_queue.h

Issue 2533603002: [scheduler] Add options to TaskQueue::InsertFence (Closed)
Patch Set: Created 4 years, 1 month 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 | « third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/scheduler/base/task_queue.h
diff --git a/third_party/WebKit/public/platform/scheduler/base/task_queue.h b/third_party/WebKit/public/platform/scheduler/base/task_queue.h
index 4f48b0024cec6e19689cc5c8f130d600a5ff713e..0d5c88e36ad572dca0ef6843b1c7d8211071c898 100644
--- a/third_party/WebKit/public/platform/scheduler/base/task_queue.h
+++ b/third_party/WebKit/public/platform/scheduler/base/task_queue.h
@@ -179,6 +179,12 @@ class BLINK_PLATFORM_EXPORT TaskQueue : public base::SingleThreadTaskRunner {
// the new fence is hit.
virtual void InsertFence() = 0;
alex clarke (OOO till 29th) 2016/11/25 15:06:38 sorry for the bike shed, but I'm thinking we shoul
altimin 2016/11/25 15:55:27 Done.
+ // Inserts a barrier in the front of the task queue which inhibits all tasks,
+ // effectively disabling this queue. This allows to block task queue for
+ // throttling purposes without interfering with enabling and disabling
+ // task queues for policy reasons.
+ virtual void BlockByFence() = 0;
+
// Removes any previously added fence and unblocks execution of any tasks
// blocked by it.
virtual void RemoveFence() = 0;
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698