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

Unified Diff: cc/content_layer_updater.cc

Issue 10982078: Adding hooks for gathering total pixels painted and rasterized stats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/cc.gyp ('k') | cc/rendering_stats.h » ('j') | cc/rendering_stats.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/content_layer_updater.cc
diff --git a/cc/content_layer_updater.cc b/cc/content_layer_updater.cc
index b151bfb34736822ca8d28e134fc3569216e7eb34..049261bde7ee00e6c0303d41ed8a674cfe9325f3 100644
--- a/cc/content_layer_updater.cc
+++ b/cc/content_layer_updater.cc
@@ -56,6 +56,8 @@ void ContentLayerUpdater::paintContents(SkCanvas* canvas, const IntRect& content
stats.totalPaintTimeInSeconds += (base::TimeTicks::Now() - paintBeginTime).InSecondsF();
canvas->restore();
+ stats.totalPixelsPainted += contentRect.width() * contentRect.height();
+
FloatRect opaqueContentRect = opaqueLayerRect;
opaqueContentRect.scale(contentsWidthScale, contentsHeightScale);
resultingOpaqueRect = enclosedIntRect(opaqueContentRect);
« no previous file with comments | « cc/cc.gyp ('k') | cc/rendering_stats.h » ('j') | cc/rendering_stats.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698