| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_TILE_MANAGER_H_ | 5 #ifndef CC_TILE_MANAGER_H_ |
| 6 #define CC_TILE_MANAGER_H_ | 6 #define CC_TILE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 void FreeResourcesForTile(Tile* tile); | 125 void FreeResourcesForTile(Tile* tile); |
| 126 void ScheduleManageTiles(); | 126 void ScheduleManageTiles(); |
| 127 void DispatchMoreTasks(); | 127 void DispatchMoreTasks(); |
| 128 void GatherPixelRefsForTile(Tile* tile); | 128 void GatherPixelRefsForTile(Tile* tile); |
| 129 void DispatchImageDecodeTasksForTile(Tile* tile); | 129 void DispatchImageDecodeTasksForTile(Tile* tile); |
| 130 void DispatchOneImageDecodeTask( | 130 void DispatchOneImageDecodeTask( |
| 131 scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref); | 131 scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref); |
| 132 void OnImageDecodeTaskCompleted( | 132 void OnImageDecodeTaskCompleted( |
| 133 scoped_refptr<Tile> tile, uint32_t pixel_ref_id); | 133 scoped_refptr<Tile> tile, uint32_t pixel_ref_id); |
| 134 bool CanDispatchRasterTask(Tile* tile); | 134 bool CanDispatchRasterTask(Tile* tile); |
| 135 void DispatchOneRasterTask(scoped_refptr<Tile> tile); | 135 void DispatchOneRasterTask(scoped_refptr<Tile> tile, bool immediate); |
| 136 void OnRasterTaskCompleted( | 136 void OnRasterTaskCompleted( |
| 137 scoped_refptr<Tile> tile, | 137 scoped_refptr<Tile> tile, |
| 138 scoped_ptr<ResourcePool::Resource> resource, | 138 scoped_ptr<ResourcePool::Resource> resource, |
| 139 int manage_tiles_call_count_when_dispatched); | 139 int manage_tiles_call_count_when_dispatched, |
| 140 bool dispatch_more); |
| 140 void DidFinishTileInitialization(Tile* tile); | 141 void DidFinishTileInitialization(Tile* tile); |
| 141 void DidTileRasterStateChange(Tile* tile, TileRasterState state); | 142 void DidTileRasterStateChange(Tile* tile, TileRasterState state); |
| 142 void DidTileBinChange(Tile* tile, | 143 void DidTileBinChange(Tile* tile, |
| 143 TileManagerBin bin, | 144 TileManagerBin bin, |
| 144 WhichTree tree); | 145 WhichTree tree); |
| 145 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; | 146 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; |
| 146 | 147 |
| 147 static void RunRasterTask(uint8* buffer, | 148 static void RunRasterTask(uint8* buffer, |
| 148 const gfx::Rect& rect, | 149 const gfx::Rect& rect, |
| 149 float contents_scale, | 150 float contents_scale, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 180 RenderingStats rendering_stats_; | 181 RenderingStats rendering_stats_; |
| 181 | 182 |
| 182 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; | 183 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; |
| 183 | 184 |
| 184 DISALLOW_COPY_AND_ASSIGN(TileManager); | 185 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 185 }; | 186 }; |
| 186 | 187 |
| 187 } // namespace cc | 188 } // namespace cc |
| 188 | 189 |
| 189 #endif // CC_TILE_MANAGER_H_ | 190 #endif // CC_TILE_MANAGER_H_ |
| OLD | NEW |