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

Unified Diff: cc/raster/task_graph_runner_perftest.cc

Issue 1449133002: TaskGraphRunner refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 5 years, 1 month 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_runner.cc ('k') | cc/raster/task_graph_runner_unittest.cc » ('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 cc617443e1741c55191f84b941ddcac8bdb0867c..f571d33d4e63450fff4a1dad51facf036f129c4b 100644
--- a/cc/raster/task_graph_runner_perftest.cc
+++ b/cc/raster/task_graph_runner_perftest.cc
@@ -2,14 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "cc/raster/task_graph_runner.h"
-
#include <vector>
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "cc/base/completion_event.h"
#include "cc/debug/lap_timer.h"
+#include "cc/raster/synchronous_task_graph_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_test.h"
@@ -46,7 +45,7 @@ class TaskGraphRunnerPerfTest : public testing::Test {
// Overridden from testing::Test:
void SetUp() override {
- task_graph_runner_ = make_scoped_ptr(new TaskGraphRunner);
+ task_graph_runner_ = make_scoped_ptr(new SynchronousTaskGraphRunner);
namespace_token_ = task_graph_runner_->GetNamespaceToken();
}
void TearDown() override { task_graph_runner_ = nullptr; }
@@ -267,7 +266,9 @@ class TaskGraphRunnerPerfTest : public testing::Test {
return completed_tasks->size();
}
- scoped_ptr<TaskGraphRunner> task_graph_runner_;
+ // Test uses SynchronousTaskGraphRunner, as this implementation introduces
+ // minimal additional complexity over the TaskGraphWorkQueue helpers.
+ scoped_ptr<SynchronousTaskGraphRunner> task_graph_runner_;
NamespaceToken namespace_token_;
LapTimer timer_;
};
« no previous file with comments | « cc/raster/task_graph_runner.cc ('k') | cc/raster/task_graph_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698