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

Unified Diff: content/renderer/render_widget.cc

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments 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 | « cc/thread_proxy.cc ('k') | tools/perf/perf_tools/scrolling_benchmark.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 406b53181c3ddd9c32fd442ff1de60a44ec3aa7c..c04b6793b81fe85e3b22ef69ad8a2cf77ae20a29 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -926,8 +926,8 @@ void RenderWidget::DoDeferredUpdate() {
last_do_deferred_update_time_ = frame_begin_ticks;
if (!is_accelerated_compositing_active_) {
- software_stats_.numAnimationFrames++;
- software_stats_.numFramesSentToScreen++;
+ software_stats_.mainAnimationFrameCount++;
+ software_stats_.rendererFrameCount++;
}
// OK, save the pending update to a local since painting may cause more
@@ -1863,8 +1863,8 @@ void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) {
void RenderWidget::GetRenderingStats(WebKit::WebRenderingStats& stats) const {
webwidget()->renderingStats(stats);
- stats.numAnimationFrames += software_stats_.numAnimationFrames;
- stats.numFramesSentToScreen += software_stats_.numFramesSentToScreen;
+ stats.mainAnimationFrameCount += software_stats_.mainAnimationFrameCount;
+ stats.rendererFrameCount += software_stats_.rendererFrameCount;
stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds;
}
« no previous file with comments | « cc/thread_proxy.cc ('k') | tools/perf/perf_tools/scrolling_benchmark.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698