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

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: Fix clang build Created 7 years, 12 months 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
« no previous file with comments | « cc/thread_proxy.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_manager.h
diff --git a/cc/tile_manager.h b/cc/tile_manager.h
index 857f88908c83617912d553626fc9f4d521fbc35c..dd12c99a344167a70b4bd772f9a775bf0b451841 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;
};
@@ -82,6 +85,9 @@ class CC_EXPORT TileManager {
void ManageTiles();
void CheckForCompletedSetPixels();
+ void GetMemoryStats(size_t* memoryRequiredBytes,
+ size_t* memoryNiceToHaveBytes,
+ size_t* memoryUsedBytes);
void GetRenderingStats(RenderingStats* stats);
« no previous file with comments | « cc/thread_proxy.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698