summaryrefslogtreecommitdiffstats
path: root/cc/resources
diff options
context:
space:
mode:
Diffstat (limited to 'cc/resources')
-rw-r--r--cc/resources/bitmap_content_layer_updater.cc2
-rw-r--r--cc/resources/bitmap_skpicture_content_layer_updater.cc8
-rw-r--r--cc/resources/content_layer_updater.cc4
-rw-r--r--cc/resources/picture.cc4
4 files changed, 8 insertions, 10 deletions
diff --git a/cc/resources/bitmap_content_layer_updater.cc b/cc/resources/bitmap_content_layer_updater.cc
index 5365c4c..7d11e34 100644
--- a/cc/resources/bitmap_content_layer_updater.cc
+++ b/cc/resources/bitmap_content_layer_updater.cc
@@ -60,7 +60,7 @@ void BitmapContentLayerUpdater::PrepareToUpdate(
}
if (stats) {
- stats->total_pixels_rasterized +=
+ stats->totalPixelsRasterized +=
content_rect.width() * content_rect.height();
}
diff --git a/cc/resources/bitmap_skpicture_content_layer_updater.cc b/cc/resources/bitmap_skpicture_content_layer_updater.cc
index e721891..139a190 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->total_paint_time += base::TimeTicks::Now() - paint_begin_time;
+ stats->totalPaintTime += base::TimeTicks::Now() - paint_begin_time;
ResourceUpdate upload = ResourceUpdate::Create(
texture(), &bitmap_, source_rect, source_rect, dest_offset);
@@ -77,10 +77,8 @@ void BitmapSkPictureContentLayerUpdater::PaintContentsRect(
rasterize_begin_time = base::TimeTicks::Now();
DrawPicture(canvas);
if (stats) {
- stats->total_rasterize_time +=
- base::TimeTicks::Now() - rasterize_begin_time;
- stats->total_pixels_rasterized +=
- source_rect.width() * source_rect.height();
+ stats->totalRasterizeTime += base::TimeTicks::Now() - rasterize_begin_time;
+ stats->totalPixelsRasterized += source_rect.width() * source_rect.height();
}
}
diff --git a/cc/resources/content_layer_updater.cc b/cc/resources/content_layer_updater.cc
index 4865a49..b4eb1d2 100644
--- a/cc/resources/content_layer_updater.cc
+++ b/cc/resources/content_layer_updater.cc
@@ -58,8 +58,8 @@ void ContentLayerUpdater::PaintContents(SkCanvas* canvas,
paint_begin_time = base::TimeTicks::Now();
painter_->Paint(canvas, layer_rect, &opaque_layer_rect);
if (stats) {
- stats->total_paint_time += base::TimeTicks::Now() - paint_begin_time;
- stats->total_pixels_painted += content_rect.width() * content_rect.height();
+ stats->totalPaintTime += base::TimeTicks::Now() - paint_begin_time;
+ stats->totalPixelsPainted += content_rect.width() * content_rect.height();
}
canvas->restore();
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index 8ec6e98..95c6382 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -117,8 +117,8 @@ void Picture::Record(ContentLayerClient* painter,
begin_paint_time = base::TimeTicks::Now();
painter->PaintContents(canvas, layer_rect_, &opaque_layer_rect);
if (stats) {
- stats->total_paint_time += base::TimeTicks::Now() - begin_paint_time;
- stats->total_pixels_painted +=
+ stats->totalPaintTime += base::TimeTicks::Now() - begin_paint_time;
+ stats->totalPixelsPainted +=
layer_rect_.width() * layer_rect_.height();
}