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

Unified Diff: cc/tile_manager.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/thread_proxy.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_manager.cc
diff --git a/cc/tile_manager.cc b/cc/tile_manager.cc
index e7583bd20e40e03b4d551c3c98b004249d304ed5..4540b95577ba3e892dbf42bf220e263a0a59aa1b 100644
--- a/cc/tile_manager.cc
+++ b/cc/tile_manager.cc
@@ -255,8 +255,8 @@ void TileManager::GetRenderingStats(RenderingStats* stats) {
stats->totalDeferredImageCacheHitCount =
rendering_stats_.totalDeferredImageCacheHitCount;
stats->totalImageGatheringCount = rendering_stats_.totalImageGatheringCount;
- stats->totalImageGatheringTimeInSeconds =
- rendering_stats_.totalImageGatheringTimeInSeconds;
+ stats->totalImageGatheringTime =
+ rendering_stats_.totalImageGatheringTime;
}
void TileManager::GetMemoryStats(
@@ -381,8 +381,8 @@ void TileManager::GatherPixelRefsForTile(Tile* tile) {
const_cast<PicturePileImpl *>(tile->picture_pile())->GatherPixelRefs(
tile->content_rect_, managed_state.pending_pixel_refs);
rendering_stats_.totalImageGatheringCount++;
- rendering_stats_.totalImageGatheringTimeInSeconds +=
- (base::TimeTicks::Now() - gather_begin_time).InSecondsF();
+ rendering_stats_.totalImageGatheringTime +=
+ base::TimeTicks::Now() - gather_begin_time;
managed_state.need_to_gather_pixel_refs = false;
}
}
« no previous file with comments | « cc/thread_proxy.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698