| Index: cc/tile_manager.h
|
| diff --git a/cc/tile_manager.h b/cc/tile_manager.h
|
| index 3d2d4b3b35549f0ed1e4bcc2cb0a475643621600..af10210f562c60c5de8ae15eb5ad3e451763645d 100644
|
| --- a/cc/tile_manager.h
|
| +++ b/cc/tile_manager.h
|
| @@ -103,7 +103,8 @@ class CC_EXPORT TileManager : public WorkerPoolClient {
|
| TileManager(TileManagerClient* client,
|
| ResourceProvider *resource_provider,
|
| size_t num_raster_threads,
|
| - bool use_cheapess_estimator);
|
| + bool use_cheapess_estimator,
|
| + bool solid_color_benchmarking);
|
| virtual ~TileManager();
|
|
|
| const GlobalStateThatImpactsTilePriority& GlobalState() const {
|
| @@ -149,11 +150,13 @@ class CC_EXPORT TileManager : public WorkerPoolClient {
|
| // Data that is passed to raster tasks.
|
| struct RasterTaskMetadata {
|
| bool use_cheapness_estimator;
|
| + bool solid_color_benchmarking;
|
| bool is_tile_in_pending_tree_now_bin;
|
| TileResolution tile_resolution;
|
| };
|
|
|
| RasterTaskMetadata GetRasterTaskMetadata(const Tile& tile) const;
|
| +
|
| void SortTiles();
|
| void AssignGpuMemoryToTiles();
|
| void FreeResourcesForTile(Tile* tile);
|
| @@ -196,6 +199,10 @@ class CC_EXPORT TileManager : public WorkerPoolClient {
|
|
|
| static void RecordCheapnessPredictorResults(bool is_predicted_cheap,
|
| bool is_actually_cheap);
|
| + static void RecordSolidColorPredictorResults(uint8* actual_bytes,
|
| + size_t pixel_count,
|
| + bool is_predicted_solid,
|
| + SkColor predicted_color);
|
|
|
| TileManagerClient* client_;
|
| scoped_ptr<ResourcePool> resource_pool_;
|
| @@ -233,6 +240,7 @@ class CC_EXPORT TileManager : public WorkerPoolClient {
|
| bool did_schedule_cheap_tasks_;
|
| bool allow_cheap_tasks_;
|
| int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS];
|
| + bool solid_color_benchmarking_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TileManager);
|
| };
|
|
|