Chromium Code Reviews| Index: cc/tile_manager.h |
| diff --git a/cc/tile_manager.h b/cc/tile_manager.h |
| index d5590365d45fae7f57c20ad7c05f43d373daea4c..8c623875a33c4a2c2159b097d59d0c4b021490f9 100644 |
| --- a/cc/tile_manager.h |
| +++ b/cc/tile_manager.h |
| @@ -151,7 +151,9 @@ class CC_EXPORT TileManager { |
| void DispatchOneImageDecodeTask( |
| scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref); |
| void OnImageDecodeTaskCompleted( |
| - scoped_refptr<Tile> tile, uint32_t pixel_ref_id); |
| + scoped_refptr<Tile> tile, |
| + uint32_t pixel_ref_id, |
| + bool more_tasks_completed); |
| bool CanDispatchRasterTask(Tile* tile); |
| scoped_ptr<ResourcePool::Resource> PrepareTileForRaster(Tile* tile); |
| void DispatchOneRasterTask(scoped_refptr<Tile> tile); |
| @@ -163,7 +165,8 @@ class CC_EXPORT TileManager { |
| void OnRasterTaskCompleted( |
| scoped_refptr<Tile> tile, |
| scoped_ptr<ResourcePool::Resource> resource, |
| - int manage_tiles_call_count_when_dispatched); |
| + int manage_tiles_call_count_when_dispatched, |
| + bool more_tasks_completed); |
|
nduca
2013/02/13 08:29:32
might tweak the name, i cant quite tell if this me
reveman
2013/02/13 08:46:38
more_tasks_have_completed?
|
| void DidFinishTileInitialization(Tile* tile); |
| void DidTileRasterStateChange(Tile* tile, TileRasterState state); |
| void DidTileBinChange(Tile* tile, |
| @@ -203,9 +206,12 @@ class CC_EXPORT TileManager { |
| typedef base::hash_map<uint32_t, skia::LazyPixelRef*> PixelRefMap; |
| PixelRefMap pending_decode_tasks_; |
| + size_t bytes_pending_raster_; |
| + |
| typedef std::queue<scoped_refptr<Tile> > TileQueue; |
| TileQueue tiles_with_pending_set_pixels_; |
| size_t bytes_pending_set_pixels_; |
| + bool need_shallow_flush_; |
| bool ever_exceeded_memory_budget_; |
| MemoryHistory::Entry memory_stats_from_last_assign_; |