Chromium Code Reviews| 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 |
| 174 static void RecordCheapnessPredictorCorrectness( | |
|
nduca
2013/02/05 00:22:26
indentation, follow chrome style guide
foo(bar,
| |
| 175 bool is_predicted_cheap, | |
| 176 bool is_actually_cheap | |
| 177 ); | |
| 178 | |
| 173 TileManagerClient* client_; | 179 TileManagerClient* client_; |
| 174 scoped_ptr<ResourcePool> resource_pool_; | 180 scoped_ptr<ResourcePool> resource_pool_; |
| 175 scoped_ptr<RasterWorkerPool> raster_worker_pool_; | 181 scoped_ptr<RasterWorkerPool> raster_worker_pool_; |
| 176 bool manage_tiles_pending_; | 182 bool manage_tiles_pending_; |
| 177 int manage_tiles_call_count_; | 183 int manage_tiles_call_count_; |
| 178 | 184 |
| 179 GlobalStateThatImpactsTilePriority global_state_; | 185 GlobalStateThatImpactsTilePriority global_state_; |
| 180 | 186 |
| 181 typedef std::vector<Tile*> TileVector; | 187 typedef std::vector<Tile*> TileVector; |
| 182 TileVector tiles_; | 188 TileVector tiles_; |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 202 bool use_cheapness_estimator_; | 208 bool use_cheapness_estimator_; |
| 203 | 209 |
| 204 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; | 210 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; |
| 205 | 211 |
| 206 DISALLOW_COPY_AND_ASSIGN(TileManager); | 212 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 207 }; | 213 }; |
| 208 | 214 |
| 209 } // namespace cc | 215 } // namespace cc |
| 210 | 216 |
| 211 #endif // CC_TILE_MANAGER_H_ | 217 #endif // CC_TILE_MANAGER_H_ |
| OLD | NEW |