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 <deque> | 7 #include <deque> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "cc/resources/rasterizer.h" | 10 #include "cc/resources/rasterizer.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 return std::find(tiles_for_raster.begin(), | 92 return std::find(tiles_for_raster.begin(), |
93 tiles_for_raster.end(), | 93 tiles_for_raster.end(), |
94 tile) != tiles_for_raster.end(); | 94 tile) != tiles_for_raster.end(); |
95 } | 95 } |
96 | 96 |
97 void FakeTileManager::DidFinishRunningTasksForTesting() { | 97 void FakeTileManager::DidFinishRunningTasksForTesting() { |
98 DidFinishRunningTasks(); | 98 DidFinishRunningTasks(); |
99 } | 99 } |
100 | 100 |
101 void FakeTileManager::Release(Tile* tile) { | 101 void FakeTileManager::Release(Tile* tile) { |
102 // TODO(sohanjg): Find which tree the tile exists, and reset | |
103 // priority for it. | |
104 tile->SetPriority(ACTIVE_TREE, TilePriority()); | |
105 tile->SetPriority(PENDING_TREE, TilePriority()); | |
reveman
2014/07/28 02:24:35
please remove these and figure out how to reset pr
sohanjg
2014/07/28 10:10:19
As mentioned above, once we implement ::GetTree in
| |
102 TileManager::Release(tile); | 106 TileManager::Release(tile); |
107 | |
108 FreeResourcesForReleasedTiles(); | |
103 CleanUpReleasedTiles(); | 109 CleanUpReleasedTiles(); |
104 } | 110 } |
105 | 111 |
106 } // namespace cc | 112 } // namespace cc |
OLD | NEW |