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

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

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase & remove inline keyword 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_manager.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
index f79c1c4b406919e13bfffe4bd40ba1f5c47a4a97..c240f0848ae8e48ca3975770e277c5ed38c07d88 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
@@ -62,7 +62,7 @@ TaskQueueManager::TaskQueueManager(
observer_(nullptr),
deletion_sentinel_(new DeletionSentinel()),
weak_factory_(this) {
- DCHECK(delegate->RunsTasksOnCurrentThread());
+ DCHECK(delegate->RunsTasksInCurrentSequence());
TRACE_EVENT_OBJECT_CREATED_WITH_ID(
TRACE_DISABLED_BY_DEFAULT("renderer.scheduler"), "TaskQueueManager",
this);
@@ -569,8 +569,8 @@ void TaskQueueManager::MaybeRecordTaskDelayHistograms(
}
}
-bool TaskQueueManager::RunsTasksOnCurrentThread() const {
- return delegate_->RunsTasksOnCurrentThread();
+bool TaskQueueManager::RunsTasksInCurrentSequence() const {
+ return delegate_->RunsTasksInCurrentSequence();
}
void TaskQueueManager::SetWorkBatchSize(int work_batch_size) {

Powered by Google App Engine
This is Rietveld 408576698