Chromium Code Reviews| 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_; |