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

Unified Diff: cc/layer_tree_host.cc

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/layer_tree_host.h ('k') | cc/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host.cc
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
index 06085b1ea745483cd1dd5b342140a2ad06ef4075..42c5a0eaf390a6ac81f4ac9f7dc8a617cb3d3c34 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -4,6 +4,7 @@
#include "config.h"
+#include "cc/rendering_stats_subscriber.h"
#include "cc/layer_tree_host.h"
#include "Region.h"
@@ -760,6 +761,19 @@ void LayerTreeHost::stopRateLimiter(WebKit::WebGraphicsContext3D* context)
}
}
+void LayerTreeHost::startRecordingRenderingStats()
+{
+ m_renderingStatsSubscriber = RenderingStatsSubscriber::create();
+ m_proxy->startRecordingRenderingStats();
+}
+
+void LayerTreeHost::stopRecordingRenderingStats(RenderingStats* stats)
+{
+ // TODO(vollick): populate the stats here.
+ m_renderingStatsSubscriber.reset();
+ m_proxy->stopRecordingRenderingStats(stats);
+}
+
void LayerTreeHost::rateLimit()
{
// Force a no-op command on the compositor context, so that any ratelimiting commands will wait for the compositing
« no previous file with comments | « cc/layer_tree_host.h ('k') | cc/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698