Index: cc/CanvasLayerTextureUpdater.cpp |
diff --git a/cc/CanvasLayerTextureUpdater.cpp b/cc/CanvasLayerTextureUpdater.cpp |
index eae5d16a6b00457360ab642e005f7af1e760f030..aefd2aaf45e2387249dce63c9f0f88187793cfc2 100644 |
--- a/cc/CanvasLayerTextureUpdater.cpp |
+++ b/cc/CanvasLayerTextureUpdater.cpp |
@@ -59,6 +59,8 @@ void CanvasLayerTextureUpdater::paintContents(SkCanvas* canvas, const IntRect& c |
stats.totalPaintTimeInSeconds += monotonicallyIncreasingTime() - paintBeginTime; |
canvas->restore(); |
+ stats.totalPixelsPainted += contentRect.width() * contentRect.height(); |
+ |
FloatRect opaqueContentRect = opaqueLayerRect; |
opaqueContentRect.scale(contentsWidthScale, contentsHeightScale); |
resultingOpaqueRect = enclosedIntRect(opaqueContentRect); |