| Index: cc/tile_manager.h
|
| diff --git a/cc/tile_manager.h b/cc/tile_manager.h
|
| index 4e2ab79506c0f16339512cd94c80623ed2084abf..cb5ad632fe6e1e301ec626d919531a50a12e9ed7 100644
|
| --- a/cc/tile_manager.h
|
| +++ b/cc/tile_manager.h
|
| @@ -15,7 +15,7 @@
|
| #include "base/values.h"
|
| #include "cc/memory_history.h"
|
| #include "cc/picture_pile_impl.h"
|
| -#include "cc/rendering_stats.h"
|
| +#include "cc/rendering_stats_instrumentation.h"
|
| #include "cc/resource_pool.h"
|
| #include "cc/tile_priority.h"
|
| #include "cc/worker_pool.h"
|
| @@ -78,7 +78,8 @@ class CC_EXPORT TileManager : public WorkerPoolClient {
|
| size_t num_raster_threads,
|
| bool use_cheapess_estimator,
|
| bool use_color_estimator,
|
| - bool prediction_benchmarking);
|
| + bool prediction_benchmarking,
|
| + RenderingStatsInstrumentation* rendering_stats_instrumentation);
|
| virtual ~TileManager();
|
|
|
| const GlobalStateThatImpactsTilePriority& GlobalState() const {
|
| @@ -97,8 +98,6 @@ class CC_EXPORT TileManager : public WorkerPoolClient {
|
| void GetMemoryStats(size_t* memoryRequiredBytes,
|
| size_t* memoryNiceToHaveBytes,
|
| size_t* memoryUsedBytes) const;
|
| - void SetRecordRenderingStats(bool record_rendering_stats);
|
| - void GetRenderingStats(RenderingStats* stats);
|
| bool HasPendingWorkScheduled(WhichTree tree) const;
|
|
|
| const MemoryHistory::Entry& memory_stats_from_last_assign() const {
|
| @@ -164,14 +163,16 @@ class CC_EXPORT TileManager : public WorkerPoolClient {
|
| WhichTree tree);
|
| scoped_ptr<Value> GetMemoryRequirementsAsValue() const;
|
|
|
| - static void RunRasterTask(uint8* buffer,
|
| - const gfx::Rect& rect,
|
| - float contents_scale,
|
| - const RasterTaskMetadata& metadata,
|
| - PicturePileImpl* picture_pile,
|
| - RenderingStats* stats);
|
| - static void RunImageDecodeTask(skia::LazyPixelRef* pixel_ref,
|
| - RenderingStats* stats);
|
| + static void RunRasterTask(
|
| + uint8* buffer,
|
| + const gfx::Rect& rect,
|
| + float contents_scale,
|
| + const RasterTaskMetadata& metadata,
|
| + RenderingStatsInstrumentation* stats_instrumentation,
|
| + PicturePileImpl* picture_pile);
|
| + static void RunImageDecodeTask(
|
| + skia::LazyPixelRef* pixel_ref,
|
| + RenderingStatsInstrumentation* stats_instrumentation);
|
|
|
| static void RecordCheapnessPredictorResults(bool is_predicted_cheap,
|
| bool is_actually_cheap);
|
| @@ -210,8 +211,7 @@ class CC_EXPORT TileManager : public WorkerPoolClient {
|
| bool ever_exceeded_memory_budget_;
|
| MemoryHistory::Entry memory_stats_from_last_assign_;
|
|
|
| - bool record_rendering_stats_;
|
| - RenderingStats rendering_stats_;
|
| + RenderingStatsInstrumentation* rendering_stats_instrumentation_;
|
|
|
| bool use_cheapness_estimator_;
|
| bool use_color_estimator_;
|
|
|