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

Unified Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 11189081: Plumb cc::CCRenderingStats from gpu_benchmarking to cc (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix Windows compilie error Created 8 years, 2 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 | « content/renderer/render_widget.cc ('k') | webkit/glue/compositor_rendering_stats.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 0e27512b9587e0d0e8c8c20da06e2ab0b7f406bc..9783f8c2dcdf60ba30a3b2faf0118a5f9eb6cae1 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
@@ -19,6 +19,7 @@
#include "webcore_convert.h"
#include "web_layer_impl.h"
#include "web_to_ccinput_handler_adapter.h"
+#include "webkit/glue/compositor_rendering_stats.h"
using namespace cc;
@@ -167,18 +168,9 @@ void WebLayerTreeViewImpl::finishAllRendering()
void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const
{
- CCRenderingStats 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.numImplThreadScrolls = ccStats.numImplThreadScrolls;
- stats.numMainThreadScrolls = ccStats.numMainThreadScrolls;
+ CCRenderingStats* cc_stats =
+ &static_cast<webkit_glue::CompositorRenderingStats*>(&stats)->cc_stats;
+ m_layerTreeHost->renderingStats(cc_stats);
}
void WebLayerTreeViewImpl::setFontAtlas(SkBitmap bitmap, WebRect asciiToWebRectTable[128], int fontHeight)
« no previous file with comments | « content/renderer/render_widget.cc ('k') | webkit/glue/compositor_rendering_stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698