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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
161 void DidTileRasterStateChange(Tile* tile, TileRasterState state); | 161 void DidTileRasterStateChange(Tile* tile, TileRasterState state); |
162 void DidTileBinChange(Tile* tile, | 162 void DidTileBinChange(Tile* tile, |
163 TileManagerBin bin, | 163 TileManagerBin bin, |
164 WhichTree tree); | 164 WhichTree tree); |
165 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; | 165 scoped_ptr<Value> GetMemoryRequirementsAsValue() const; |
166 | 166 |
167 static void PerformRaster(uint8* buffer, | 167 static void PerformRaster(uint8* buffer, |
168 const gfx::Rect& rect, | 168 const gfx::Rect& rect, |
169 float contents_scale, | 169 float contents_scale, |
170 bool use_cheapness_estimator, | 170 bool use_cheapness_estimator, |
171 bool simplify_paint, | |
171 PicturePileImpl* picture_pile, | 172 PicturePileImpl* picture_pile, |
172 RenderingStats* stats); | 173 RenderingStats* stats); |
173 static void RunImageDecodeTask(skia::LazyPixelRef* pixel_ref, | 174 static void RunImageDecodeTask(skia::LazyPixelRef* pixel_ref, |
174 RenderingStats* stats); | 175 RenderingStats* stats); |
175 | 176 |
176 static void RecordCheapnessPredictorResults(bool is_predicted_cheap, | 177 static void RecordCheapnessPredictorResults(bool is_predicted_cheap, |
177 bool is_actually_cheap); | 178 bool is_actually_cheap); |
178 | 179 |
180 bool ShouldSimplifyPaint(Tile* tile); | |
Sami
2013/02/08 15:05:47
Nit: I suppose this should be const (and take a co
| |
181 | |
179 TileManagerClient* client_; | 182 TileManagerClient* client_; |
180 scoped_ptr<ResourcePool> resource_pool_; | 183 scoped_ptr<ResourcePool> resource_pool_; |
181 scoped_ptr<RasterWorkerPool> raster_worker_pool_; | 184 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
182 bool manage_tiles_pending_; | 185 bool manage_tiles_pending_; |
183 int manage_tiles_call_count_; | 186 int manage_tiles_call_count_; |
184 | 187 |
185 GlobalStateThatImpactsTilePriority global_state_; | 188 GlobalStateThatImpactsTilePriority global_state_; |
186 | 189 |
187 typedef std::vector<Tile*> TileVector; | 190 typedef std::vector<Tile*> TileVector; |
188 TileVector tiles_; | 191 TileVector tiles_; |
(...skipping 18 matching lines...) Expand all Loading... | |
207 | 210 |
208 bool use_cheapness_estimator_; | 211 bool use_cheapness_estimator_; |
209 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; | 212 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; |
210 | 213 |
211 DISALLOW_COPY_AND_ASSIGN(TileManager); | 214 DISALLOW_COPY_AND_ASSIGN(TileManager); |
212 }; | 215 }; |
213 | 216 |
214 } // namespace cc | 217 } // namespace cc |
215 | 218 |
216 #endif // CC_TILE_MANAGER_H_ | 219 #endif // CC_TILE_MANAGER_H_ |
OLD | NEW |