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

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

Issue 2579773002: Use WTF::Deque instead of std::queue in the blink scheduler (Closed)
Patch Set: Apply the fix Sami suggested Created 3 years, 11 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: 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..53f1efceba26d8e7a326cfac88cdde10d9841487 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/work_queue.h
+++ b/third_party/WebKit/Source/platform/scheduler/base/work_queue.h
@@ -66,7 +66,7 @@ class BLINK_PLATFORM_EXPORT WorkQueue {
// Swap the |work_queue_| with |incoming_queue| and if a fence hasn't been
// reached it informs the WorkQueueSets if the head changed. Assumes
// |task_queue_->any_thread_lock_| is locked.
- void SwapLocked(std::queue<TaskQueueImpl::Task>& incoming_queue);
+ void SwapLocked(WTF::Deque<TaskQueueImpl::Task>& incoming_queue);
size_t Size() const { return work_queue_.size(); }
@@ -113,7 +113,7 @@ class BLINK_PLATFORM_EXPORT WorkQueue {
bool BlockedByFence() const;
private:
- std::queue<TaskQueueImpl::Task> work_queue_;
+ WTF::Deque<TaskQueueImpl::Task> work_queue_;
WorkQueueSets* work_queue_sets_; // NOT OWNED.
TaskQueueImpl* task_queue_; // NOT OWNED.
size_t work_queue_set_index_;

Powered by Google App Engine
This is Rietveld 408576698