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

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

Issue 2860813004: Change TaskQueueImpl to use a Deque with an inline capacity of 8 (Closed)
Patch Set: Created 3 years, 7 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/task_queue_impl.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
index bd60d62149c64dcea7743c4446643f4d07c3666f..849dfeaeac0a6ca4641504b769ca5808dc43dba8 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc
@@ -373,9 +373,9 @@ void TaskQueueImpl::ReloadImmediateWorkQueueIfEmpty() {
main_thread_only().immediate_work_queue->ReloadEmptyImmediateQueue();
}
-WTF::Deque<TaskQueueImpl::Task> TaskQueueImpl::TakeImmediateIncomingQueue() {
+TaskQueueImpl::TaskDeque TaskQueueImpl::TakeImmediateIncomingQueue() {
base::AutoLock immediate_incoming_queue_lock(immediate_incoming_queue_lock_);
- WTF::Deque<TaskQueueImpl::Task> queue;
+ TaskQueueImpl::TaskDeque queue;
queue.Swap(immediate_incoming_queue());
return queue;
}
@@ -706,7 +706,7 @@ EnqueueOrder TaskQueueImpl::GetFenceForTest() const {
}
// static
-void TaskQueueImpl::QueueAsValueInto(const WTF::Deque<Task>& queue,
+void TaskQueueImpl::QueueAsValueInto(const TaskDeque& queue,
base::TimeTicks now,
base::trace_event::TracedValue* state) {
for (const Task& task : queue) {

Powered by Google App Engine
This is Rietveld 408576698