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) |