Index: content/renderer/raster_worker_pool.cc |
diff --git a/content/renderer/raster_worker_pool.cc b/content/renderer/raster_worker_pool.cc |
index 7abe23c289e7f31844326e164d1a72e282ff6eae..8c50e01b3b973bb989c8ace4a570f6289b814d5c 100644 |
--- a/content/renderer/raster_worker_pool.cc |
+++ b/content/renderer/raster_worker_pool.cc |
@@ -352,18 +352,12 @@ void RasterWorkerPool::RunTaskInCategoryWithLockAcquired( |
// There may be more work available, so wake up another worker thread. |
SignalHasReadyToRunTasksWithLockAcquired(); |
- // Call WillRun() before releasing |lock_| and running task. |
- task->WillRun(); |
- |
{ |
base::AutoUnlock unlock(lock_); |
task->RunOnWorkerThread(); |
} |
- // This will mark task as finished running. |
- task->DidRun(); |
- |
work_queue_.CompleteTask(prioritized_task); |
// If namespace has finished running all tasks, wake up origin threads. |