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

Unified Diff: cc/resources/picture.cc

Issue 12780025: cc: Chromify rendering_stats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 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/resources/content_layer_updater.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.cc
diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
index a34323757e3a8f738ef3f56151847f1dd817e387..ccab893bcd4c420becc73f22a2c287d09e90666e 100644
--- a/cc/resources/picture.cc
+++ b/cc/resources/picture.cc
@@ -102,8 +102,8 @@ void Picture::Record(ContentLayerClient* painter,
begin_paint_time = base::TimeTicks::Now();
painter->PaintContents(canvas, layer_rect_, &opaque_layer_rect);
if (stats) {
- stats->totalPaintTime += base::TimeTicks::Now() - begin_paint_time;
- stats->totalPixelsPainted +=
+ stats->total_paint_time += base::TimeTicks::Now() - begin_paint_time;
+ stats->total_pixels_painted +=
layer_rect_.width() * layer_rect_.height();
}
« no previous file with comments | « cc/resources/content_layer_updater.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698