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

Unified Diff: cc/bitmap_skpicture_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 | « no previous file | cc/content_layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/bitmap_skpicture_content_layer_updater.cc
diff --git a/cc/bitmap_skpicture_content_layer_updater.cc b/cc/bitmap_skpicture_content_layer_updater.cc
index 8434b989a8ae47f4f9ec2a2c75a82dec0a74ee55..5c0e512c1893899d5d744cd5566b24f9490e1c7b 100644
--- a/cc/bitmap_skpicture_content_layer_updater.cc
+++ b/cc/bitmap_skpicture_content_layer_updater.cc
@@ -29,7 +29,7 @@ void BitmapSkPictureContentLayerUpdater::Resource::update(ResourceUpdateQueue& q
SkCanvas canvas(&device);
base::TimeTicks paintBeginTime = base::TimeTicks::Now();
updater()->paintContentsRect(&canvas, sourceRect, stats);
- stats.totalPaintTimeInSeconds += (base::TimeTicks::Now() - paintBeginTime).InSecondsF();
+ stats.totalPaintTime += base::TimeTicks::Now() - paintBeginTime;
ResourceUpdate upload = ResourceUpdate::Create(
texture(), &m_bitmap, sourceRect, sourceRect, destOffset);
@@ -65,7 +65,7 @@ void BitmapSkPictureContentLayerUpdater::paintContentsRect(SkCanvas* canvas, con
contentRect().y() - sourceRect.y());
base::TimeTicks rasterizeBeginTime = base::TimeTicks::Now();
drawPicture(canvas);
- stats.totalRasterizeTimeInSeconds += (base::TimeTicks::Now() - rasterizeBeginTime).InSecondsF();
+ stats.totalRasterizeTime += base::TimeTicks::Now() - rasterizeBeginTime;
stats.totalPixelsRasterized += sourceRect.width() * sourceRect.height();
}
« no previous file with comments | « no previous file | cc/content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698