| 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 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 FakeTileManager::FakeTileManager(TileManagerClient* client, | 31 FakeTileManager::FakeTileManager(TileManagerClient* client, |
| 32 ResourceProvider* resource_provider) | 32 ResourceProvider* resource_provider) |
| 33 : TileManager(client, | 33 : TileManager(client, |
| 34 resource_provider, | 34 resource_provider, |
| 35 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), | 35 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), |
| 36 1, | 36 1, |
| 37 false, | 37 false, |
| 38 NULL, | 38 NULL, |
| 39 resource_provider->best_texture_format()) {} | 39 resource_provider->best_texture_format()) {} |
| 40 |
| 41 void FakeTileManager::ReassignMemoryToOOMTilesRequiredForActivation() { |
| 42 ReassignGpuMemoryToOOMTilesRequiredForActivation(); |
| 40 } | 43 } |
| 44 |
| 45 bool FakeTileManager::HasBeenAssignedMemory(Tile* tile) { |
| 46 return std::find(tiles_that_need_to_be_rasterized().begin(), |
| 47 tiles_that_need_to_be_rasterized().end(), |
| 48 tile) != tiles_that_need_to_be_rasterized().end(); |
| 49 } |
| 50 |
| 51 } // namespace cc |
| OLD | NEW |