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_RESOURCES_TILE_MANAGER_H_ | 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_ |
6 #define CC_RESOURCES_TILE_MANAGER_H_ | 6 #define CC_RESOURCES_TILE_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 scoped_ptr<ResourcePool::Resource> resource, | 146 scoped_ptr<ResourcePool::Resource> resource, |
147 int manage_tiles_call_count_when_dispatched); | 147 int manage_tiles_call_count_when_dispatched); |
148 void DidFinishTileInitialization(Tile* tile); | 148 void DidFinishTileInitialization(Tile* tile); |
149 void DidTileTreeBinChange(Tile* tile, | 149 void DidTileTreeBinChange(Tile* tile, |
150 TileManagerBin new_tree_bin, | 150 TileManagerBin new_tree_bin, |
151 WhichTree tree); | 151 WhichTree tree); |
152 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; | 152 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; |
153 | 153 |
154 static void RunRasterTask( | 154 static void RunRasterTask( |
155 uint8* buffer, | 155 uint8* buffer, |
156 const gfx::Rect& rect, | 156 gfx::Rect rect, |
157 float contents_scale, | 157 float contents_scale, |
158 const RasterTaskMetadata& metadata, | 158 const RasterTaskMetadata& metadata, |
159 RenderingStatsInstrumentation* stats_instrumentation, | 159 RenderingStatsInstrumentation* stats_instrumentation, |
160 PicturePileImpl* picture_pile); | 160 PicturePileImpl* picture_pile); |
161 static void RunImageDecodeTask( | 161 static void RunImageDecodeTask( |
162 skia::LazyPixelRef* pixel_ref, | 162 skia::LazyPixelRef* pixel_ref, |
163 RenderingStatsInstrumentation* stats_instrumentation); | 163 RenderingStatsInstrumentation* stats_instrumentation); |
164 | 164 |
165 static void RecordCheapnessPredictorResults(bool is_predicted_cheap, | 165 static void RecordCheapnessPredictorResults(bool is_predicted_cheap, |
166 bool is_actually_cheap); | 166 bool is_actually_cheap); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 size_t max_pending_tasks_; | 205 size_t max_pending_tasks_; |
206 | 206 |
207 base::TimeTicks anticipated_draw_time_; | 207 base::TimeTicks anticipated_draw_time_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(TileManager); | 209 DISALLOW_COPY_AND_ASSIGN(TileManager); |
210 }; | 210 }; |
211 | 211 |
212 } // namespace cc | 212 } // namespace cc |
213 | 213 |
214 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 214 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |