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

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

Issue 2533603002: [scheduler] Add options to TaskQueue::InsertFence (Closed)
Patch Set: Addressed comments 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
Index: third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc b/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc
index f12e42a79e5f9c489a9f4a4d3a95508dae713390..a3def9c27da6129779dbe97c4311769de518653a 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc
@@ -10,7 +10,8 @@ namespace internal {
// Note we set the first |enqueue_order_| to 1 so that isValid may distinguish a
Sami 2016/11/25 17:12:59 Looks like this comment needs updating.
altimin 2016/11/25 17:44:09 Done.
// valid EnqueueOrder from an invalid one.
-EnqueueOrderGenerator::EnqueueOrderGenerator() : enqueue_order_(1) {}
+EnqueueOrderGenerator::EnqueueOrderGenerator()
+ : enqueue_order_(static_cast<EnqueueOrder>(EnqueueOrderValues::FIRST)) {}
EnqueueOrderGenerator::~EnqueueOrderGenerator() {}

Powered by Google App Engine
This is Rietveld 408576698