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

Unified Diff: cc/resources/bitmap_skpicture_content_layer_updater.cc

Issue 12780025: cc: Chromify rendering_stats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/content_layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/bitmap_skpicture_content_layer_updater.cc
diff --git a/cc/resources/bitmap_skpicture_content_layer_updater.cc b/cc/resources/bitmap_skpicture_content_layer_updater.cc
index 139a190699791f6cf96d171659e57730281695ec..e721891568c0b34e29660acb6f2f9946da8b70aa 100644
--- a/cc/resources/bitmap_skpicture_content_layer_updater.cc
+++ b/cc/resources/bitmap_skpicture_content_layer_updater.cc
@@ -36,7 +36,7 @@ void BitmapSkPictureContentLayerUpdater::Resource::Update(
paint_begin_time = base::TimeTicks::Now();
updater_->PaintContentsRect(&canvas, source_rect, stats);
if (stats)
- stats->totalPaintTime += base::TimeTicks::Now() - paint_begin_time;
+ stats->total_paint_time += base::TimeTicks::Now() - paint_begin_time;
ResourceUpdate upload = ResourceUpdate::Create(
texture(), &bitmap_, source_rect, source_rect, dest_offset);
@@ -77,8 +77,10 @@ void BitmapSkPictureContentLayerUpdater::PaintContentsRect(
rasterize_begin_time = base::TimeTicks::Now();
DrawPicture(canvas);
if (stats) {
- stats->totalRasterizeTime += base::TimeTicks::Now() - rasterize_begin_time;
- stats->totalPixelsRasterized += source_rect.width() * source_rect.height();
+ stats->total_rasterize_time +=
+ base::TimeTicks::Now() - rasterize_begin_time;
+ stats->total_pixels_rasterized +=
+ source_rect.width() * source_rect.height();
}
}
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698