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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 protected: | 92 protected: |
93 // Methods called by Tile | 93 // Methods called by Tile |
94 friend class Tile; | 94 friend class Tile; |
95 void RegisterTile(Tile* tile); | 95 void RegisterTile(Tile* tile); |
96 void UnregisterTile(Tile* tile); | 96 void UnregisterTile(Tile* tile); |
97 void WillModifyTilePriority( | 97 void WillModifyTilePriority( |
98 Tile* tile, WhichTree tree, const TilePriority& new_priority); | 98 Tile* tile, WhichTree tree, const TilePriority& new_priority); |
99 | 99 |
100 private: | 100 private: |
| 101 void SortTiles(); |
101 void AssignGpuMemoryToTiles(); | 102 void AssignGpuMemoryToTiles(); |
102 void FreeResourcesForTile(Tile* tile); | 103 void FreeResourcesForTile(Tile* tile); |
103 void ScheduleManageTiles(); | 104 void ScheduleManageTiles(); |
104 void DispatchMoreTasks(); | 105 void DispatchMoreTasks(); |
105 void GatherPixelRefsForTile(Tile* tile); | 106 void GatherPixelRefsForTile(Tile* tile); |
106 void DispatchImageDecodeTasksForTile(Tile* tile); | 107 void DispatchImageDecodeTasksForTile(Tile* tile); |
107 void DispatchOneImageDecodeTask( | 108 void DispatchOneImageDecodeTask( |
108 scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref); | 109 scoped_refptr<Tile> tile, skia::LazyPixelRef* pixel_ref); |
109 void OnImageDecodeTaskCompleted( | 110 void OnImageDecodeTaskCompleted( |
110 scoped_refptr<Tile> tile, uint32_t pixel_ref_id); | 111 scoped_refptr<Tile> tile, uint32_t pixel_ref_id); |
(...skipping 28 matching lines...) Expand all Loading... |
139 TileQueue tiles_with_pending_set_pixels_; | 140 TileQueue tiles_with_pending_set_pixels_; |
140 | 141 |
141 RenderingStats rendering_stats_; | 142 RenderingStats rendering_stats_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(TileManager); | 144 DISALLOW_COPY_AND_ASSIGN(TileManager); |
144 }; | 145 }; |
145 | 146 |
146 } // namespace cc | 147 } // namespace cc |
147 | 148 |
148 #endif // CC_TILE_MANAGER_H_ | 149 #endif // CC_TILE_MANAGER_H_ |
OLD | NEW |