diff options
Diffstat (limited to 'cc/resources/picture_pile.cc')
-rw-r--r-- | cc/resources/picture_pile.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cc/resources/picture_pile.cc b/cc/resources/picture_pile.cc index 9fe76db..3035209 100644 --- a/cc/resources/picture_pile.cc +++ b/cc/resources/picture_pile.cc @@ -82,6 +82,8 @@ void PicturePile::Update( } } + int repeat_count = std::max(1, slow_down_raster_scale_factor_for_debug_); + // Walk through all pictures in the rect of interest and record. for (TilingData::Iterator iter(&tiling_, interest_rect); iter; ++iter) { // Create a picture in this list if it doesn't exist. @@ -103,7 +105,9 @@ void PicturePile::Update( for (PictureList::iterator pic = pic_list.begin(); pic != pic_list.end(); ++pic) { if (!(*pic)->HasRecording()) { - (*pic)->Record(painter, tile_grid_info_, stats); + TRACE_EVENT0("cc", "PicturePile::Update recording loop"); + for (int i = 0; i < repeat_count; i++) + (*pic)->Record(painter, tile_grid_info_, stats); (*pic)->GatherPixelRefs(tile_grid_info_, stats); (*pic)->CloneForDrawing(num_raster_threads_); } |