OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/test/fake_tile_manager.h" | 5 #include "cc/test/fake_tile_manager.h" |
6 | 6 |
7 #include "cc/resources/raster_worker_pool.h" | 7 #include "cc/resources/raster_worker_pool.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 | 10 |
| 11 namespace { |
| 12 |
| 13 class FakeRasterWorkerPool : public RasterWorkerPool { |
| 14 public: |
| 15 FakeRasterWorkerPool() : RasterWorkerPool(NULL, 1) {} |
| 16 }; |
| 17 |
| 18 } // namespace |
| 19 |
11 FakeTileManager::FakeTileManager(TileManagerClient* client) | 20 FakeTileManager::FakeTileManager(TileManagerClient* client) |
12 : TileManager(client, | 21 : TileManager(client, |
13 NULL, | 22 NULL, |
14 RasterWorkerPool::Create(1), | 23 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), |
15 1, | 24 1, |
16 false, | 25 false, |
17 NULL, | 26 NULL, |
18 false) {} | 27 false) {} |
19 } | 28 } |
OLD | NEW |