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

Unified Diff: cc/tiles/tile_manager_perftest.cc

Issue 1888713002: cc: Merge TileTaskRunner to TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename_tile_task_client
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/tiles/tile_manager.cc ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager_perftest.cc
diff --git a/cc/tiles/tile_manager_perftest.cc b/cc/tiles/tile_manager_perftest.cc
index e5c7106de90f0a424b8611fea3e526fa90155e36..46f9017629c10e5ced3217b81657eeed52d45f3d 100644
--- a/cc/tiles/tile_manager_perftest.cc
+++ b/cc/tiles/tile_manager_perftest.cc
@@ -37,10 +37,10 @@ static const int kTimeLimitMillis = 2000;
static const int kWarmupRuns = 5;
static const int kTimeCheckInterval = 10;
-class FakeTileTaskRunnerImpl : public TileTaskRunner,
- public RasterBufferProvider {
+class FakeTileTaskWorkerPoolImpl : public TileTaskWorkerPool,
+ public RasterBufferProvider {
public:
- // Overridden from TileTaskRunner:
+ // Overridden from TileTaskWorkerPool:
void Shutdown() override {}
void ScheduleTasks(TaskGraph* graph) override {
for (auto& node : graph->nodes) {
@@ -84,7 +84,7 @@ class FakeTileTaskRunnerImpl : public TileTaskRunner,
private:
TileTask::Vector completed_tasks_;
};
-base::LazyInstance<FakeTileTaskRunnerImpl> g_fake_tile_task_runner =
+base::LazyInstance<FakeTileTaskWorkerPoolImpl> g_fake_tile_task_worker_pool =
LAZY_INSTANCE_INITIALIZER;
class TileManagerPerfTest : public testing::Test {
@@ -127,8 +127,8 @@ class TileManagerPerfTest : public testing::Test {
virtual void InitializeRenderer() {
host_impl_.SetVisible(true);
host_impl_.InitializeRenderer(output_surface_.get());
- tile_manager()->SetTileTaskRunnerForTesting(
- g_fake_tile_task_runner.Pointer());
+ tile_manager()->SetTileTaskWorkerPoolForTesting(
+ g_fake_tile_task_worker_pool.Pointer());
}
void SetupDefaultTrees(const gfx::Size& layer_bounds) {
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698