Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6745)

Unified Diff: cc/tile_manager.h

Issue 11637022: Send memory management policies to the tile manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate discussions Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/tile_manager.h
diff --git a/cc/tile_manager.h b/cc/tile_manager.h
index 857f88908c83617912d553626fc9f4d521fbc35c..ec17ee25f25b62e01f7d168486cea44c081d3abb 100644
--- a/cc/tile_manager.h
+++ b/cc/tile_manager.h
@@ -62,6 +62,9 @@ class CC_EXPORT ManagedTileState {
TileManagerBin bin[NUM_TREES];
// Bin used to determine raster priority.
TileManagerBin raster_bin;
+ // The bin that the tile would have if the GPU memory manager had a maximally permissive policy,
+ // send to the GPU memory manager to determine policy.
+ TileManagerBin gpu_memmgr_stats_bin;
TileResolution resolution;
float time_to_needed_in_seconds;
};
@@ -88,6 +91,11 @@ class CC_EXPORT TileManager {
int GetTilesInBinCount(TileManagerBin bin, WhichTree tree);
int GetDrawableTilesInBinCount(TileManagerBin bin, WhichTree tree);
+ void GetManagedMemoryStats(
+ size_t* memoryVisibleBytes,
+ size_t* memoryVisibleAndNearbyBytes,
+ size_t* memoryUseBytes);
+
protected:
// Methods called by Tile
friend class Tile;

Powered by Google App Engine
This is Rietveld 408576698