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

Unified Diff: content/renderer/raster_worker_pool.cc

Issue 1903733003: cc: Implement states for Task for stricter control. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@land_merge_tile_task_runner
Patch Set: feedback Created 4 years, 8 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
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698