Chromium Code Reviews| Index: cc/tile_manager.h |
| diff --git a/cc/tile_manager.h b/cc/tile_manager.h |
| index 31826aedce7839a77862f3614bbe3766b03df03d..4e1b17a4baa60f23e765d32b610ac54bddb6e3db 100644 |
| --- a/cc/tile_manager.h |
| +++ b/cc/tile_manager.h |
| @@ -5,6 +5,7 @@ |
| #ifndef CC_TILE_MANAGER_H_ |
| #define CC_TILE_MANAGER_H_ |
| +#include <list> |
| #include <queue> |
| #include <vector> |
| @@ -53,6 +54,8 @@ class CC_EXPORT ManagedTileState { |
| scoped_ptr<ResourcePool::Resource> resource; |
| bool resource_is_being_initialized; |
| bool contents_swizzled; |
| + bool need_to_gather_pixel_refs; |
| + std::list<skia::LazyPixelRef*> pending_pixel_refs; |
| // Ephemeral state, valid only during Manage. |
| TileManagerBin bin; |
| @@ -91,7 +94,7 @@ class CC_EXPORT TileManager { |
| void FreeResourcesForTile(Tile*); |
| void ScheduleManageTiles(); |
| void ScheduleCheckForCompletedSetPixels(); |
| - void DispatchMoreRasterTasks(); |
| + void DispatchMoreTasks(); |
| void DispatchOneRasterTask(RasterThread*, scoped_refptr<Tile>); |
| void OnRasterTaskCompleted( |
| scoped_refptr<Tile>, |
| @@ -99,6 +102,11 @@ class CC_EXPORT TileManager { |
| scoped_refptr<PicturePileImpl>, |
| RenderingStats*); |
| void DidFinishTileInitialization(Tile*); |
| + void DispatchImageDecodingTasksForTile(Tile*); |
| + void OnImageDecodingTaskCompleted(scoped_refptr<Tile>, uint32_t); |
| + void DispatchOneImageDecodingTask( |
| + RasterThread*, scoped_refptr<Tile>, skia::LazyPixelRef*); |
| + RasterThread* GetFreeRasterThread(); |
| TileManagerClient* client_; |
| scoped_ptr<ResourcePool> resource_pool_; |
| @@ -111,6 +119,14 @@ class CC_EXPORT TileManager { |
| TileVector tiles_; |
| TileVector tiles_that_need_to_be_rasterized_; |
| + typedef std::list<Tile*> TileList; |
| + // Tiles that are has image decoding tasks. These tiles needs to be rasterized |
|
reveman
2012/12/11 05:07:18
nit: s/that are has image decoding tasks/with imag
qinmin
2012/12/11 05:36:20
done, also fixed needs->need
On 2012/12/11 05:07:1
|
| + // when all the image decoding tasks finish. |
| + TileList tiles_with_image_decoding_tasks_; |
| + |
| + typedef base::hash_map<uint32_t, skia::LazyPixelRef*> PixelRefMap; |
|
reveman
2012/12/11 05:07:18
nit: add "base/hash_tables.h" to includes
qinmin
2012/12/11 05:36:20
Done.
|
| + PixelRefMap pending_decode_tasks_; |
| + |
| typedef std::queue<scoped_refptr<Tile> > TileQueue; |
| TileQueue tiles_with_pending_set_pixels_; |