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

Unified Diff: content/renderer/render_widget.cc

Issue 12780025: cc: Chromify rendering_stats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
« cc/trees/layer_tree_host.cc ('K') | « 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 fc69a27aad3ad10442336cb06a2c2102a2948208..e2abe32a14ac07ad7b7b7141a94307855cc6bcd3 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -891,7 +891,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_.totalPaintTime += paint_time;
+ software_stats_.total_paint_time += paint_time;
}
} else {
// Normal painting case.
@@ -905,7 +905,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_.totalPaintTime += paint_time;
+ software_stats_.total_paint_time += paint_time;
}
// Flush to underlying bitmap. TODO(darin): is this needed?
@@ -917,8 +917,8 @@ void RenderWidget::PaintRect(const gfx::Rect& rect,
if (kEnableGpuBenchmarking) {
int64 num_pixels_processed = rect.width() * rect.height();
- software_stats_.totalPixelsPainted += num_pixels_processed;
- software_stats_.totalPixelsRasterized += num_pixels_processed;
+ software_stats_.total_pixels_painted += num_pixels_processed;
+ software_stats_.total_pixels_rasterized += num_pixels_processed;
}
}
@@ -1122,8 +1122,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_.num_animation_frames++;
+ software_stats_.num_frames_sent_to_screen++;
}
// OK, save the pending update to a local since painting may cause more
@@ -2190,18 +2190,18 @@ void RenderWidget::GetRenderingStats(
if (compositor_)
compositor_->GetRenderingStats(&stats.rendering_stats);
- stats.rendering_stats.numAnimationFrames +=
- software_stats_.numAnimationFrames;
- stats.rendering_stats.numFramesSentToScreen +=
- software_stats_.numFramesSentToScreen;
- stats.rendering_stats.totalPaintTime +=
- software_stats_.totalPaintTime;
- stats.rendering_stats.totalPixelsPainted +=
- software_stats_.totalPixelsPainted;
- stats.rendering_stats.totalRasterizeTime +=
- software_stats_.totalRasterizeTime;
- stats.rendering_stats.totalPixelsRasterized +=
- software_stats_.totalPixelsRasterized;
+ stats.rendering_stats.num_animation_frames +=
+ software_stats_.num_animation_frames;
+ stats.rendering_stats.num_frames_sent_to_screen +=
+ software_stats_.num_frames_sent_to_screen;
+ 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.total_rasterize_time +=
+ software_stats_.total_rasterize_time;
+ stats.rendering_stats.total_pixels_rasterized +=
+ software_stats_.total_pixels_rasterized;
}
bool RenderWidget::GetGpuRenderingStats(GpuRenderingStats* stats) const {
« cc/trees/layer_tree_host.cc ('K') | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698