diff options
Diffstat (limited to 'cc/trees/layer_tree_host.h')
-rw-r--r-- | cc/trees/layer_tree_host.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h index 2b815de..1b60dce 100644 --- a/cc/trees/layer_tree_host.h +++ b/cc/trees/layer_tree_host.h @@ -17,7 +17,6 @@ #include "cc/animation/animation_events.h" #include "cc/base/cc_export.h" #include "cc/base/scoped_ptr_vector.h" -#include "cc/debug/rendering_stats.h" #include "cc/output/output_surface.h" #include "cc/scheduler/rate_limiter.h" #include "cc/trees/layer_tree_host_client.h" @@ -51,10 +50,12 @@ class LayerTreeHostImplClient; class PrioritizedResourceManager; class PrioritizedResource; class Region; +class RenderingStatsInstrumentation; class ResourceProvider; class ResourceUpdateQueue; class ScrollbarLayer; class TopControlsManager; +struct RenderingStats; struct ScrollAndScaleSet; // Provides information on an Impl's rendering capabilities back to the @@ -148,6 +149,10 @@ class CC_EXPORT LayerTreeHost : public RateLimiterClient { void CollectRenderingStats(RenderingStats* stats) const; + RenderingStatsInstrumentation* rendering_stats_instrumentation() const { + return rendering_stats_instrumentation_.get(); + } + const RendererCapabilities& GetRendererCapabilities() const; void SetNeedsAnimate(); @@ -247,7 +252,8 @@ class CC_EXPORT LayerTreeHost : public RateLimiterClient { bool PaintLayerContents(const LayerList& render_surface_layer_list, ResourceUpdateQueue* quue); bool PaintMasksForRenderSurface(Layer* render_surface_layer, - ResourceUpdateQueue* queue); + ResourceUpdateQueue* queue, + RenderingStats* stats); void UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue); void UpdateHudLayer(); @@ -275,7 +281,7 @@ class CC_EXPORT LayerTreeHost : public RateLimiterClient { scoped_ptr<Proxy> proxy_; int commit_number_; - RenderingStats rendering_stats_; + scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; bool renderer_initialized_; bool output_surface_lost_; |