| 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 { | 11 namespace { |
| 12 | 12 |
| 13 class FakeRasterWorkerPool : public RasterWorkerPool { | 13 class FakeRasterWorkerPool : public RasterWorkerPool { |
| 14 public: | 14 public: |
| 15 FakeRasterWorkerPool() : RasterWorkerPool(NULL, 1) {} | 15 FakeRasterWorkerPool() : RasterWorkerPool(NULL, 1) {} |
| 16 | 16 |
| 17 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {} | 17 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {} |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 } // namespace | 20 } // namespace |
| 21 | 21 |
| 22 FakeTileManager::FakeTileManager(TileManagerClient* client) | 22 FakeTileManager::FakeTileManager(TileManagerClient* client) |
| 23 : TileManager(client, | 23 : TileManager(client, |
| 24 NULL, | 24 NULL, |
| 25 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), | 25 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), |
| 26 1, | 26 1, |
| 27 false, | 27 false, |
| 28 NULL) {} | 28 NULL) {} |
| 29 |
| 30 FakeTileManager::FakeTileManager(TileManagerClient* client, |
| 31 ResourceProvider* resource_provider) |
| 32 : TileManager(client, |
| 33 resource_provider, |
| 34 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), |
| 35 1, |
| 36 false, |
| 37 NULL) {} |
| 29 } | 38 } |
| OLD | NEW |