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

Unified Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 11364221: Fixing RenderingStats vs WebRenderingStats mess (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « content/renderer/render_widget.cc ('k') | webkit/compositor_bindings/web_rendering_stats_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/web_layer_tree_view_impl.cc
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.cc b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
index f51d04e1f0d3902c4532def05ba50be7690d7c5b..ae48bbc8a18218936cdf13b560b139cb11de942c 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
@@ -18,6 +18,7 @@
#include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
#include "web_layer_impl.h"
#include "web_to_ccinput_handler_adapter.h"
+#include "webkit/compositor_bindings/web_rendering_stats_impl.h"
using namespace cc;
@@ -168,20 +169,8 @@ void WebLayerTreeViewImpl::setDeferCommits(bool deferCommits)
void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const
{
- RenderingStats ccStats;
- m_layerTreeHost->renderingStats(&ccStats);
-
- stats.numAnimationFrames = ccStats.numAnimationFrames;
- stats.numFramesSentToScreen = ccStats.numFramesSentToScreen;
- stats.droppedFrameCount = ccStats.droppedFrameCount;
- stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds;
- stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds;
- stats.totalCommitTimeInSeconds = ccStats.totalCommitTimeInSeconds;
- stats.totalCommitCount = ccStats.totalCommitCount;
- stats.totalPixelsPainted = ccStats.totalPixelsPainted;
- stats.totalPixelsRasterized = ccStats.totalPixelsRasterized;
- stats.numImplThreadScrolls = ccStats.numImplThreadScrolls;
- stats.numMainThreadScrolls = ccStats.numMainThreadScrolls;
+ m_layerTreeHost->renderingStats(
+ &static_cast<WebRenderingStatsImpl&>(stats).rendering_stats);
}
void WebLayerTreeViewImpl::setShowFPSCounter(bool show)
« no previous file with comments | « content/renderer/render_widget.cc ('k') | webkit/compositor_bindings/web_rendering_stats_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698