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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/enqueue_order.h

Issue 2533603002: [scheduler] Add options to TaskQueue::InsertFence (Closed)
Patch Set: More nits 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 | « no previous file | third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scheduler/base/enqueue_order.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.h b/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.h
index 6b0e76bbdd83929adc6ced93e4ea6afa8eaea9ac..04932d54376478f53556d100ef23692280bee6ff 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.h
@@ -15,6 +15,16 @@ namespace internal {
using EnqueueOrder = uint64_t;
+// TODO(scheduler-dev): Remove explicit casts when c++17 comes.
+enum class EnqueueOrderValues : EnqueueOrder {
+ // Invalid EnqueueOrder.
+ NONE = 0,
+
+ // Earliest possible EnqueueOrder, to be used for fence blocking.
+ BLOCKING_FENCE = 1,
+ FIRST = 2,
+};
+
// A 64bit integer used to provide ordering of tasks. NOTE The scheduler assumes
// these values will not overflow.
class EnqueueOrderGenerator {
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698