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

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

Issue 2546423002: [Try # 3] Scheduler refactoring to virtually eliminate redundant DoWorks (Closed)
Patch Set: Fix lock order inversion Created 4 years 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/work_queue.h
diff --git a/third_party/WebKit/Source/platform/scheduler/base/work_queue.h b/third_party/WebKit/Source/platform/scheduler/base/work_queue.h
index 998fc62d03c55c0d9cad243b1dbd353a69a66ef0..9fedd553a11c205a9f4692aeabe6120f903e0dd0 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/work_queue.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/work_queue.h
@@ -31,7 +31,9 @@ class WorkQueueSets;
// throttling mechanisms.
class BLINK_PLATFORM_EXPORT WorkQueue {
public:
- WorkQueue(TaskQueueImpl* task_queue, const char* name);
+ enum class QueueType { DELAYED, IMMEDIATE };
+
+ WorkQueue(TaskQueueImpl* task_queue, const char* name, QueueType queue_type);
~WorkQueue();
// Associates this work queue with the given work queue sets. This must be
@@ -120,6 +122,7 @@ class BLINK_PLATFORM_EXPORT WorkQueue {
HeapHandle heap_handle_;
const char* name_;
EnqueueOrder fence_;
+ QueueType queue_type_;
DISALLOW_COPY_AND_ASSIGN(WorkQueue);
};

Powered by Google App Engine
This is Rietveld 408576698