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

Unified Diff: cc/picture.cc

Issue 11896002: [cc] Use base::TimeTicks in RenderStats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: renderwidget too Created 7 years, 11 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/content_layer_updater.cc ('k') | cc/picture_pile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture.cc
diff --git a/cc/picture.cc b/cc/picture.cc
index ac4cb384ddb6ab00fe6bce9ee29d8914953d655d..d6afee5f76f5aa177fb75d0bb9def9b6755a1713 100644
--- a/cc/picture.cc
+++ b/cc/picture.cc
@@ -79,8 +79,7 @@ void Picture::Record(ContentLayerClient* painter,
gfx::RectF opaque_layer_rect;
base::TimeTicks beginPaintTime = base::TimeTicks::Now();
painter->paintContents(canvas, layer_rect_, opaque_layer_rect);
- double delta = (base::TimeTicks::Now() - beginPaintTime).InSecondsF();
- stats.totalPaintTimeInSeconds += delta;
+ stats.totalPaintTime += base::TimeTicks::Now() - beginPaintTime;
stats.totalPixelsPainted += layer_rect_.width() *
layer_rect_.height();
« no previous file with comments | « cc/content_layer_updater.cc ('k') | cc/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698