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

Unified Diff: cc/tiles/gpu_image_decode_controller_unittest.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/tile_task_worker_pool_unittest.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/gpu_image_decode_controller_unittest.cc
diff --git a/cc/tiles/gpu_image_decode_controller_unittest.cc b/cc/tiles/gpu_image_decode_controller_unittest.cc
index f5949253ab1ccd43b025a74af5b16bd21d94661a..05d6056338f708bb4e1bf368373fd705ffee2c78 100644
--- a/cc/tiles/gpu_image_decode_controller_unittest.cc
+++ b/cc/tiles/gpu_image_decode_controller_unittest.cc
@@ -38,9 +38,13 @@ void ScheduleTask(TileTask* task) {
}
void RunTask(TileTask* task) {
- task->WillRun();
+ // TODO(prashant.n): Once ScheduleOnOriginThread() and
+ // CompleteOnOriginThread() functions are removed, modify this function
+ // accordingly. (crbug.com/599863)
+ task->state().DidSchedule();
+ task->state().DidStart();
task->RunOnWorkerThread();
- task->DidRun();
+ task->state().DidFinish();
}
void CompleteTask(TileTask* task) {
« no previous file with comments | « cc/raster/tile_task_worker_pool_unittest.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698