Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Unified Diff: cc/layer_tree_host_impl.h

Issue 12519006: cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed tests Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/layer_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index 6e90e93fc2913272e7a89bfde1b324240eb4e5d9..ed09f7c02ae833c9cf836341e548feafd2549034 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -16,6 +16,7 @@
#include "cc/render_pass.h"
#include "cc/render_pass_sink.h"
#include "cc/renderer.h"
+#include "cc/rendering_stats_instrumentation.h"
#include "cc/tile_manager.h"
#include "cc/top_controls_manager_client.h"
#include "skia/ext/refptr.h"
@@ -39,7 +40,6 @@ class RenderPassDrawQuad;
class ResourceProvider;
class TopControlsManager;
struct RendererCapabilities;
-struct RenderingStats;
// LayerTreeHost->Proxy callback interface.
class LayerTreeHostImplClient {
@@ -80,7 +80,8 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
static scoped_ptr<LayerTreeHostImpl> Create(
const LayerTreeSettings& settings,
LayerTreeHostImplClient* client,
- Proxy* proxy);
+ Proxy* proxy,
+ RenderingStatsInstrumentation* rendering_stats_instrumentation);
virtual ~LayerTreeHostImpl();
// InputHandlerClient implementation
@@ -231,8 +232,6 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
return !animation_registrar_->active_animation_controllers().empty();
}
- void CollectRenderingStats(RenderingStats* stats) const;
-
void SendManagedMemoryStats(
size_t memory_visible_bytes,
size_t memory_visible_and_nearby_bytes,
@@ -322,9 +321,11 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
bool page_scale_animation_active() const { return !!page_scale_animation_; }
protected:
- LayerTreeHostImpl(const LayerTreeSettings& settings,
- LayerTreeHostImplClient* client,
- Proxy* proxy);
+ LayerTreeHostImpl(
+ const LayerTreeSettings& settings,
+ LayerTreeHostImplClient* client,
+ Proxy* proxy,
+ RenderingStatsInstrumentation* rendering_stats_instrumentation);
void ActivatePendingTree();
// Virtual for testing.
@@ -438,6 +439,8 @@ class CC_EXPORT LayerTreeHostImpl : public InputHandlerClient,
scoped_ptr<AnimationRegistrar> animation_registrar_;
+ RenderingStatsInstrumentation* rendering_stats_instrumentation_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
};
« cc/layer_tree_host.cc ('K') | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698