summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_tile_manager.cc
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-07 22:04:47 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-07 22:04:47 +0000
commiteeedf44230437227a66e852f1c5e1b83f25bede9 (patch)
treec3ae47e4d4f1783b73401eff31a6672501c0cf26 /cc/test/fake_tile_manager.cc
parent9c9e0247efce1cb09489db56f6578c840b5e6e1b (diff)
downloadchromium_src-eeedf44230437227a66e852f1c5e1b83f25bede9.zip
chromium_src-eeedf44230437227a66e852f1c5e1b83f25bede9.tar.gz
chromium_src-eeedf44230437227a66e852f1c5e1b83f25bede9.tar.bz2
cc: Added priority ref tile set instead of sorting tiles.
This patch adds a new class PriorityRefTileSet to maintain a priority ordering to tiles within TileManager. It sorts things that need sorting, and doesn't sort other things. For instance, NOW and SOON bins are sorted. EVENTUALLY and NEVER bins are not. BUG=267151 Review URL: https://chromiumcodereview.appspot.com/21945006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager.cc')
-rw-r--r--cc/test/fake_tile_manager.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc
index e302a23..c132254 100644
--- a/cc/test/fake_tile_manager.cc
+++ b/cc/test/fake_tile_manager.cc
@@ -42,10 +42,10 @@ FakeTileManager::~FakeTileManager() {}
void FakeTileManager::AssignMemoryToTiles() {
tiles_for_raster.clear();
- all_tiles.clear();
+ all_tiles.Clear();
- GetSortedTilesWithAssignedBins(&all_tiles);
- AssignGpuMemoryToTiles(all_tiles, &tiles_for_raster);
+ GetPrioritizedTileSet(&all_tiles);
+ AssignGpuMemoryToTiles(&all_tiles, &tiles_for_raster);
}
bool FakeTileManager::HasBeenAssignedMemory(Tile* tile) {