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

Unified Diff: cc/test/fake_tile_manager.cc

Issue 16190002: cc: Add new RasterWorkerPool interface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 7 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/resources/tile_manager.cc ('k') | cc/test/test_web_graphics_context_3d.h » ('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 f40dbaa88cb69bed2ab8b88c668317c8db99b905..c3af876582d22a24cb1178d1d396d3e3835cb555 100644
--- a/cc/test/fake_tile_manager.cc
+++ b/cc/test/fake_tile_manager.cc
@@ -8,12 +8,22 @@
namespace cc {
+namespace {
+
+class FakeRasterWorkerPool : public RasterWorkerPool {
+ public:
+ FakeRasterWorkerPool() : RasterWorkerPool(NULL, 1) {}
+
+ virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {}
+};
+
+} // namespace
+
FakeTileManager::FakeTileManager(TileManagerClient* client)
: TileManager(client,
NULL,
- RasterWorkerPool::Create(1),
+ make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
1,
false,
- NULL,
- false) {}
+ NULL) {}
}
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698