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

Unified Diff: cc/content_layer_updater.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/bitmap_skpicture_content_layer_updater.cc ('k') | cc/picture.cc » ('j') | no next file with comments »
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 ab7a382bdac5272a4d331d531c4ca36ebb7b9854..6e4858e9aecbe3bb639f1a1dbe223973454cb167 100644
--- a/cc/content_layer_updater.cc
+++ b/cc/content_layer_updater.cc
@@ -51,7 +51,7 @@ void ContentLayerUpdater::paintContents(SkCanvas* canvas, const gfx::Rect& conte
gfx::RectF opaqueLayerRect;
base::TimeTicks paintBeginTime = base::TimeTicks::Now();
m_painter->paint(canvas, layerRect, opaqueLayerRect);
- stats.totalPaintTimeInSeconds += (base::TimeTicks::Now() - paintBeginTime).InSecondsF();
+ stats.totalPaintTime += base::TimeTicks::Now() - paintBeginTime;
canvas->restore();
stats.totalPixelsPainted += contentRect.width() * contentRect.height();
« no previous file with comments | « cc/bitmap_skpicture_content_layer_updater.cc ('k') | cc/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698