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

Unified Diff: cc/picture.cc

Issue 11434033: Track the cost of impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
Index: cc/picture.cc
===================================================================
--- cc/picture.cc (revision 170195)
+++ cc/picture.cc (working copy)
@@ -68,6 +68,8 @@
painter->paintContents(canvas, layer_rect, opaque_layer_rect);
double delta = (base::TimeTicks::Now() - beginPaintTime).InSecondsF();
stats.totalPaintTimeInSeconds += delta;
+ stats.totalPixelsPainted += opaque_layer_rect.width() *
+ opaque_layer_rect.height();
canvas->restore();
picture_->endRecording();
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/picture_pile_impl.h » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698