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

Unified Diff: cc/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/single_thread_proxy.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.h
diff --git a/cc/thread_proxy.h b/cc/thread_proxy.h
index 721bb6884c530fe0c9139582267eed1adf233cb2..372a31e56af4af6c61b318a58ebaae4839487e35 100644
--- a/cc/thread_proxy.h
+++ b/cc/thread_proxy.h
@@ -17,6 +17,7 @@ namespace cc {
class InputHandler;
class LayerTreeHost;
+class RenderingStatsSubscriber;
class ResourceUpdateQueue;
class Scheduler;
class ScopedThreadProxy;
@@ -39,6 +40,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;
@@ -120,6 +123,8 @@ private:
void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSucceeded, RendererCapabilities*);
void layerTreeHostClosedOnImplThread(CompletionEvent*);
void setFullRootLayerDamageOnImplThread();
+ void startRecordingRenderingStatsOnImplThread(CompletionEvent*);
+ void stopRecordingRenderingStatsOnImplThread(CompletionEvent*, RenderingStats*);
void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*);
void recreateContextOnImplThread(CompletionEvent*, GraphicsContext*, bool* recreateSucceeded, RendererCapabilities*);
void renderingStatsOnImplThread(CompletionEvent*, RenderingStats*);
@@ -171,8 +176,10 @@ private:
bool m_renderVSyncEnabled;
+ // TODO(vollick): These should go away once we switch to the subscriber model.
base::TimeDelta m_totalCommitTime;
size_t m_totalCommitCount;
+ scoped_ptr<RenderingStatsSubscriber> m_renderingStatsSubscriber;
bool m_deferCommits;
bool m_deferredCommitPending;
« no previous file with comments | « cc/single_thread_proxy.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698