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

Unified Diff: cc/single_thread_proxy.h

Issue 11198005: NOT READY FOR REVIEW - switch to a subscriber model for rendering stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing file. Created 8 years, 1 month 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
« no previous file with comments | « cc/rendering_stats_subscriber.cc ('k') | cc/single_thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/single_thread_proxy.h
diff --git a/cc/single_thread_proxy.h b/cc/single_thread_proxy.h
index 93f8c09a6a3bc927c71cbe1c9a6532f96695d487..48120249c1652ecdb56f2ad11392d0b5f5c2aa44 100644
--- a/cc/single_thread_proxy.h
+++ b/cc/single_thread_proxy.h
@@ -15,6 +15,7 @@
namespace cc {
class LayerTreeHost;
+class RenderingStatsSubscriber;
class SingleThreadProxy : public Proxy, LayerTreeHostImplClient {
public:
@@ -32,6 +33,8 @@ public:
virtual bool initializeRenderer() OVERRIDE;
virtual bool recreateContext() OVERRIDE;
virtual void renderingStats(RenderingStats*) OVERRIDE;
+ virtual void startRecordingRenderingStats() OVERRIDE;
+ virtual void stopRecordingRenderingStats(RenderingStats*) OVERRIDE;
virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE;
virtual void loseContext() OVERRIDE;
virtual void setNeedsAnimate() OVERRIDE;
@@ -85,6 +88,7 @@ private:
base::TimeDelta m_totalCommitTime;
size_t m_totalCommitCount;
+ scoped_ptr<RenderingStatsSubscriber> m_renderingStatsSubscriber;
};
// For use in the single-threaded case. In debug builds, it pretends that the
« no previous file with comments | « cc/rendering_stats_subscriber.cc ('k') | cc/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698