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

Unified Diff: cc/picture_pile_impl.cc

Issue 12191006: Add picture pile raster times histogram (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/tile_manager.cc » ('j') | cc/tile_manager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_pile_impl.cc
diff --git a/cc/picture_pile_impl.cc b/cc/picture_pile_impl.cc
index 233d5248c8c0fb6b07886fb97caaa263a647cb7a..35300bd70a5b691a5aa1558eed5edf76f3dd095d 100644
--- a/cc/picture_pile_impl.cc
+++ b/cc/picture_pile_impl.cc
@@ -65,10 +65,6 @@ void PicturePileImpl::Raster(
DCHECK(contents_scale >= min_contents_scale_);
- base::TimeTicks rasterize_begin_time;
- if (stats)
- rasterize_begin_time = base::TimeTicks::Now();
-
canvas->save();
canvas->translate(-content_rect.x(), -content_rect.y());
canvas->clipRect(gfx::RectToSkRect(content_rect));
@@ -120,9 +116,6 @@ void PicturePileImpl::Raster(
}
}
canvas->restore();
-
- if (stats)
- stats->totalRasterizeTime += base::TimeTicks::Now() - rasterize_begin_time;
}
void PicturePileImpl::GatherPixelRefs(
« no previous file with comments | « no previous file | cc/tile_manager.cc » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698