| 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 is_pending_now_bin, |
| 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 |
| 179 TileManagerClient* client_; | 180 TileManagerClient* client_; |
| 180 scoped_ptr<ResourcePool> resource_pool_; | 181 scoped_ptr<ResourcePool> resource_pool_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 207 | 208 |
| 208 bool use_cheapness_estimator_; | 209 bool use_cheapness_estimator_; |
| 209 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; | 210 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; |
| 210 | 211 |
| 211 DISALLOW_COPY_AND_ASSIGN(TileManager); | 212 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 212 }; | 213 }; |
| 213 | 214 |
| 214 } // namespace cc | 215 } // namespace cc |
| 215 | 216 |
| 216 #endif // CC_TILE_MANAGER_H_ | 217 #endif // CC_TILE_MANAGER_H_ |
| OLD | NEW |