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

Unified Diff: cc/layer_tree_host_impl.h

Issue 11827009: cc: add PaintTimeCounter to keep track of per frame paint time (Closed) Base URL: http://git.chromium.org/chromium/src.git@ring
Patch Set: resolved nits, TimeDelta throughout the API Created 7 years, 11 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
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index ad97893544a34128ba96b198c5d3a7636dc470b5..3d92dc4fb19f667604cf73d4c85fb33b1146d39e 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -34,6 +34,7 @@ class LayerImpl;
class LayerTreeHostImplTimeSourceAdapter;
class LayerTreeImpl;
class PageScaleAnimation;
+class PaintTimeCounter;
class RenderPassDrawQuad;
class ResourceProvider;
class TopControlsManager;
@@ -204,6 +205,7 @@ public:
size_t memoryUseBytes);
FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); }
+ PaintTimeCounter* paintTimeCounter() const { return m_paintTimeCounter.get(); }
DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get(); }
ResourceProvider* resourceProvider() const { return m_resourceProvider.get(); }
TopControlsManager* topControlsManager() const { return m_topControlsManager.get(); }
@@ -215,6 +217,8 @@ public:
void setDebugState(const LayerTreeDebugState& debugState) { m_debugState = debugState; }
const LayerTreeDebugState& debugState() const { return m_debugState; }
+ void savePaintTime(const base::TimeDelta& totalPaintTime);
+
class CC_EXPORT CullRenderPassesWithCachedTextures {
public:
bool shouldRemoveRenderPass(const RenderPassDrawQuad&, const FrameData&) const;
@@ -333,6 +337,7 @@ private:
PinchZoomViewport m_pinchZoomViewport;
scoped_ptr<FrameRateCounter> m_fpsCounter;
+ scoped_ptr<PaintTimeCounter> m_paintTimeCounter;
scoped_ptr<DebugRectHistory> m_debugRectHistory;
int64 m_numImplThreadScrolls;
« no previous file with comments | « 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