summaryrefslogtreecommitdiffstats
path: root/cc/content_layer_updater.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/content_layer_updater.cc')
-rw-r--r--cc/content_layer_updater.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/content_layer_updater.cc b/cc/content_layer_updater.cc
index b62a293..aba79ec0 100644
--- a/cc/content_layer_updater.cc
+++ b/cc/content_layer_updater.cc
@@ -56,6 +56,8 @@ void ContentLayerUpdater::paintContents(SkCanvas* canvas, const gfx::Rect& conte
stats.totalPaintTimeInSeconds += (base::TimeTicks::Now() - paintBeginTime).InSecondsF();
canvas->restore();
+ stats.totalPixelsPainted += contentRect.width() * contentRect.height();
+
gfx::RectF opaqueContentRect = gfx::ScaleRect(opaqueLayerRect, contentsWidthScale, contentsHeightScale);
resultingOpaqueRect = gfx::ToEnclosedRect(opaqueContentRect);