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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void DidFinishTileInitialization(Tile* tile); | 158 void DidFinishTileInitialization(Tile* tile); |
159 void DidTileRasterStateChange(Tile* tile, TileRasterState state); | 159 void DidTileRasterStateChange(Tile* tile, TileRasterState state); |
160 void DidTileBinChange(Tile* tile, | 160 void DidTileBinChange(Tile* tile, |
161 TileManagerBin bin, | 161 TileManagerBin bin, |
162 WhichTree tree); | 162 WhichTree tree); |
163 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; | 163 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; |
164 | 164 |
165 static void RunRasterTask(uint8* buffer, | 165 static void RunRasterTask(uint8* buffer, |
166 const gfx::Rect& rect, | 166 const gfx::Rect& rect, |
167 float contents_scale, | 167 float contents_scale, |
| 168 bool use_cheapness_estimator, |
168 PicturePileImpl* picture_pile, | 169 PicturePileImpl* picture_pile, |
169 RenderingStats* stats); | 170 RenderingStats* stats); |
170 static void RunImageDecodeTask(skia::LazyPixelRef* pixel_ref, | 171 static void RunImageDecodeTask(skia::LazyPixelRef* pixel_ref, |
171 RenderingStats* stats); | 172 RenderingStats* stats); |
172 | 173 |
173 TileManagerClient* client_; | 174 TileManagerClient* client_; |
174 scoped_ptr<ResourcePool> resource_pool_; | 175 scoped_ptr<ResourcePool> resource_pool_; |
175 scoped_ptr<RasterWorkerPool> raster_worker_pool_; | 176 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
176 bool manage_tiles_pending_; | 177 bool manage_tiles_pending_; |
177 int manage_tiles_call_count_; | 178 int manage_tiles_call_count_; |
(...skipping 24 matching lines...) Expand all Loading... |
202 bool use_cheapness_estimator_; | 203 bool use_cheapness_estimator_; |
203 | 204 |
204 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; | 205 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; |
205 | 206 |
206 DISALLOW_COPY_AND_ASSIGN(TileManager); | 207 DISALLOW_COPY_AND_ASSIGN(TileManager); |
207 }; | 208 }; |
208 | 209 |
209 } // namespace cc | 210 } // namespace cc |
210 | 211 |
211 #endif // CC_TILE_MANAGER_H_ | 212 #endif // CC_TILE_MANAGER_H_ |
OLD | NEW |