Index: cc/tile_manager.h |
diff --git a/cc/tile_manager.h b/cc/tile_manager.h |
index a2c28dda95031bf5d2155a62ca3d099795db3567..56ecc883e0035a8ecb6aac2f31122f0f0a990c37 100644 |
--- a/cc/tile_manager.h |
+++ b/cc/tile_manager.h |
@@ -59,7 +59,9 @@ class CC_EXPORT ManagedTileState { |
std::list<skia::LazyPixelRef*> pending_pixel_refs; |
// Ephemeral state, valid only during Manage. |
- TileManagerBin bin; |
+ TileManagerBin bin[NUM_TREES]; |
+ // Bin used to determine raster priority. |
+ TileManagerBin raster_bin; |
TileResolution resolution; |
float time_to_needed_in_seconds; |
}; |
@@ -81,7 +83,10 @@ class CC_EXPORT TileManager { |
void ManageTiles(); |
void CheckForCompletedSetPixels(); |
- void renderingStats(RenderingStats* stats); |
+ void GetRenderingStats(RenderingStats* stats); |
+ |
+ int GetTilesInBinCount(TileManagerBin bin, WhichTree tree); |
+ int GetDrawableTilesInBinCount(TileManagerBin bin, WhichTree tree); |
protected: |
// Methods called by Tile |
@@ -91,6 +96,7 @@ class CC_EXPORT TileManager { |
void WillModifyTilePriority(Tile*, WhichTree, const TilePriority& new_priority); |
private: |
+ void ResetBinCounts(); |
void AssignGpuMemoryToTiles(); |
void FreeResourcesForTile(Tile*); |
void ScheduleManageTiles(); |
@@ -121,6 +127,9 @@ class CC_EXPORT TileManager { |
GlobalStateThatImpactsTilePriority global_state_; |
+ int tiles_in_bin_count_[NUM_BINS][NUM_TREES]; |
+ int drawable_tiles_in_bin_count_[NUM_BINS][NUM_TREES]; |
+ |
typedef std::vector<Tile*> TileVector; |
TileVector tiles_; |
TileVector tiles_that_need_to_be_rasterized_; |