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

Unified Diff: cc/test/fake_tile_manager.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/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/tiles/gpu_image_decode_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_tile_manager.cc
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc
index 7397ae4a3e49e4d9361591dfb65cebaaa262823a..94ca37b18904e7360f2430b787ceb8e0bf3be178 100644
--- a/cc/test/fake_tile_manager.cc
+++ b/cc/test/fake_tile_manager.cc
@@ -13,16 +13,16 @@
#include "base/lazy_instance.h"
#include "base/thread_task_runner_handle.h"
#include "cc/raster/raster_buffer.h"
-#include "cc/raster/tile_task_runner.h"
+#include "cc/raster/tile_task_worker_pool.h"
namespace cc {
namespace {
-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 (const auto& node : graph->nodes) {
@@ -66,7 +66,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;
} // namespace
@@ -76,7 +76,7 @@ FakeTileManager::FakeTileManager(TileManagerClient* client)
base::ThreadTaskRunnerHandle::Get(),
std::numeric_limits<size_t>::max(),
false /* use_partial_raster */) {
- SetResources(nullptr, g_fake_tile_task_runner.Pointer(),
+ SetResources(nullptr, g_fake_tile_task_worker_pool.Pointer(),
&image_decode_controller_, std::numeric_limits<size_t>::max(),
false /* use_gpu_rasterization */);
}
@@ -87,7 +87,7 @@ FakeTileManager::FakeTileManager(TileManagerClient* client,
base::ThreadTaskRunnerHandle::Get(),
std::numeric_limits<size_t>::max(),
false /* use_partial_raster */) {
- SetResources(resource_pool, g_fake_tile_task_runner.Pointer(),
+ SetResources(resource_pool, g_fake_tile_task_worker_pool.Pointer(),
&image_decode_controller_, std::numeric_limits<size_t>::max(),
false /* use_gpu_rasterization */);
}
« no previous file with comments | « cc/raster/zero_copy_tile_task_worker_pool.cc ('k') | cc/tiles/gpu_image_decode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698