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

Unified Diff: cc/raster/tile_task.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/raster/task_graph_work_queue.cc ('k') | cc/raster/tile_task_worker_pool_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task.cc
diff --git a/cc/raster/tile_task.cc b/cc/raster/tile_task.cc
index 7b44a8e418bff2cae0dd323aef3611edbb4d30a6..4010640a03c44ccae104e4a3c18baa3f58d4330b 100644
--- a/cc/raster/tile_task.cc
+++ b/cc/raster/tile_task.cc
@@ -22,7 +22,7 @@ TileTask::TileTask(bool supports_concurrent_execution,
TileTask::~TileTask() {
DCHECK(!did_schedule_);
- DCHECK(!did_run_ || did_complete_);
+ DCHECK(!state().IsFinished() || did_complete_);
}
void TileTask::WillSchedule() {
« no previous file with comments | « cc/raster/task_graph_work_queue.cc ('k') | cc/raster/tile_task_worker_pool_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698