| 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 c1545520ab9df637cbba40596e322fb09a910f6a..07cfce68a7771cb77f4cc7bc6e42eb64d4dc5bed 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
|
| @@ -193,7 +193,7 @@ void TaskQueueImpl::UnregisterTaskQueue() {
|
| main_thread_only().delayed_work_queue.reset();
|
| }
|
|
|
| -bool TaskQueueImpl::RunsTasksOnCurrentThread() const {
|
| +bool TaskQueueImpl::RunsTasksInCurrentSequence() const {
|
| return base::PlatformThread::CurrentId() == thread_id_;
|
| }
|
|
|
| @@ -362,7 +362,7 @@ void TaskQueueImpl::PushOntoImmediateIncomingQueueLocked(
|
| // However there's no point posting a DoWork for a blocked queue. NB we can
|
| // only tell if it's disabled from the main thread.
|
| bool queue_is_blocked =
|
| - RunsTasksOnCurrentThread() &&
|
| + RunsTasksInCurrentSequence() &&
|
| (!IsQueueEnabled() || main_thread_only().current_fence);
|
| any_thread().task_queue_manager->OnQueueHasIncomingImmediateWork(
|
| this, sequence_number, queue_is_blocked);
|
|
|