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

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 review feedback 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..e8ad531aa14eeda65c03b2b760ae19fdb0ab66b5 100644
--- a/cc/tile_manager.h
+++ b/cc/tile_manager.h
@@ -27,6 +27,10 @@ class CC_EXPORT TileManagerClient {
public:
virtual void ScheduleManageTiles() = 0;
virtual void ScheduleCheckForCompletedSetPixels() = 0;
+ virtual void SendTileManagerMemoryStats(
nduca 2012/12/28 02:16:03 Lets flip this to GetMemoryStats and just have the
ccameron 2012/12/28 19:56:00 Done.
+ size_t memoryRequiredBytes,
+ size_t memoryNiceToHaveBytes,
+ size_t memoryUsedBytes) = 0;
protected:
virtual ~TileManagerClient() {}
@@ -62,6 +66,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;
};
@@ -118,6 +125,7 @@ class CC_EXPORT TileManager {
RasterThread*, scoped_refptr<Tile>, skia::LazyPixelRef*);
void GatherPixelRefsForTile(Tile*);
RasterThread* GetFreeRasterThread();
+ void SendManagedMemoryStats();
TileManagerClient* client_;
scoped_ptr<ResourcePool> resource_pool_;
« cc/thread_proxy.cc ('K') | « cc/thread_proxy.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698