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

Unified Diff: cc/test/fake_tile_task_manager.cc

Issue 2018353005: cc: Fix data race in cc::TaskState::IsFinished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 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
« no previous file with comments | « cc/raster/tile_task.cc ('k') | cc/test/test_tile_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_tile_task_manager.cc
diff --git a/cc/test/fake_tile_task_manager.cc b/cc/test/fake_tile_task_manager.cc
index a5849eab488d874c598d3fd8906e822c82da5a32..cc7019897def8af11f5bb393f5a347bf07848368 100644
--- a/cc/test/fake_tile_task_manager.cc
+++ b/cc/test/fake_tile_task_manager.cc
@@ -34,6 +34,7 @@ void FakeTileTaskManagerImpl::CheckForCompletedTasks() {
DCHECK(task->state().IsFinished() || task->state().IsCanceled());
TileTask* tile_task = static_cast<TileTask*>(task.get());
tile_task->OnTaskCompleted();
+ tile_task->DidComplete();
}
completed_tasks_.clear();
« no previous file with comments | « cc/raster/tile_task.cc ('k') | cc/test/test_tile_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698