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

Unified Diff: cc/raster/task_graph_runner_perftest.cc

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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/task.cc ('k') | cc/raster/tile_task.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/task_graph_runner_perftest.cc
diff --git a/cc/raster/task_graph_runner_perftest.cc b/cc/raster/task_graph_runner_perftest.cc
index a825f1b373ab7fd3d33d318462f0911857041908..b5f1ef14427e2ab0997fdfb740690c7e3e642f85 100644
--- a/cc/raster/task_graph_runner_perftest.cc
+++ b/cc/raster/task_graph_runner_perftest.cc
@@ -272,6 +272,11 @@ class TaskGraphRunnerPerfTest : public testing::Test {
DCHECK(completed_tasks->empty());
task_graph_runner_->CollectCompletedTasks(namespace_token_,
completed_tasks);
+ for (auto& task : *completed_tasks) {
+ // Reset task state as same task would be reused as if new.
+ task->state().Reset();
+ }
+
return completed_tasks->size();
}
« no previous file with comments | « cc/raster/task.cc ('k') | cc/raster/tile_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698