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

Unified Diff: content/renderer/render_widget.cc

Issue 23088002: cc: RenderingStats overhaul (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged EnumerateFileds. Created 7 years, 4 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/trees/thread_proxy.cc ('k') | no next file » | 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 7a19c8ee6cca3a6fd5437fbfc33c2dd0d9b4f8c0..0b206c7eb3a82df799f9f4a2274b54c34700d96a 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1020,7 +1020,7 @@ void RenderWidget::PaintRect(const gfx::Rect& rect,
base::TimeDelta paint_time =
base::TimeTicks::HighResNow() - paint_begin_ticks;
if (!is_accelerated_compositing_active_)
- software_stats_.total_paint_time += paint_time;
+ software_stats_.main_stats.paint_time += paint_time;
}
#endif
} else {
@@ -1035,7 +1035,7 @@ void RenderWidget::PaintRect(const gfx::Rect& rect,
base::TimeDelta paint_time =
base::TimeTicks::HighResNow() - paint_begin_ticks;
if (!is_accelerated_compositing_active_)
- software_stats_.total_paint_time += paint_time;
+ software_stats_.main_stats.paint_time += paint_time;
}
// Flush to underlying bitmap. TODO(darin): is this needed?
@@ -1047,7 +1047,7 @@ void RenderWidget::PaintRect(const gfx::Rect& rect,
if (kEnableGpuBenchmarking) {
int64 num_pixels_processed = rect.width() * rect.height();
- software_stats_.total_pixels_painted += num_pixels_processed;
+ software_stats_.main_stats.painted_pixel_count += num_pixels_processed;
}
}
@@ -1254,8 +1254,8 @@ void RenderWidget::DoDeferredUpdate() {
last_do_deferred_update_time_ = frame_begin_ticks;
if (!is_accelerated_compositing_active_) {
- software_stats_.animation_frame_count++;
- software_stats_.screen_frame_count++;
+ software_stats_.main_stats.animation_frame_count++;
+ software_stats_.main_stats.screen_frame_count++;
}
// OK, save the pending update to a local since painting may cause more
@@ -2436,14 +2436,14 @@ void RenderWidget::GetRenderingStats(
if (compositor_)
compositor_->GetRenderingStats(&stats.rendering_stats);
- stats.rendering_stats.animation_frame_count +=
- software_stats_.animation_frame_count;
- stats.rendering_stats.screen_frame_count +=
- software_stats_.screen_frame_count;
- stats.rendering_stats.total_paint_time +=
- software_stats_.total_paint_time;
- stats.rendering_stats.total_pixels_painted +=
- software_stats_.total_pixels_painted;
+ stats.rendering_stats.main_stats.animation_frame_count +=
+ software_stats_.main_stats.animation_frame_count;
+ stats.rendering_stats.main_stats.screen_frame_count +=
+ software_stats_.main_stats.screen_frame_count;
+ stats.rendering_stats.main_stats.paint_time +=
+ software_stats_.main_stats.paint_time;
+ stats.rendering_stats.main_stats.painted_pixel_count +=
+ software_stats_.main_stats.painted_pixel_count;
}
bool RenderWidget::GetGpuRenderingStats(GpuRenderingStats* stats) const {
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698