Index: cc/resources/display_list_recording_source.cc |
diff --git a/cc/resources/display_list_recording_source.cc b/cc/resources/display_list_recording_source.cc |
index 296036d7c3e10961d4df016c560bb5ef11fc5581..e6488687451c64f6811206446aba1f633a1b6a0c 100644 |
--- a/cc/resources/display_list_recording_source.cc |
+++ b/cc/resources/display_list_recording_source.cc |
@@ -26,7 +26,8 @@ |
namespace cc { |
-DisplayListRecordingSource::DisplayListRecordingSource() |
+DisplayListRecordingSource::DisplayListRecordingSource( |
+ const gfx::Size& grid_cell_size) |
: slow_down_raster_scale_factor_for_debug_(0), |
gather_pixel_refs_(false), |
requires_clear_(false), |
@@ -34,6 +35,7 @@ |
solid_color_(SK_ColorTRANSPARENT), |
background_color_(SK_ColorTRANSPARENT), |
pixel_record_distance_(kPixelDistanceToRecord), |
+ grid_cell_size_(grid_cell_size), |
is_suitable_for_gpu_rasterization_(true) { |
} |
@@ -115,6 +117,8 @@ |
display_list_->EmitTraceSnapshot(); |
display_list_->CreateAndCacheSkPicture(); |
+ if (gather_pixel_refs_) |
+ display_list_->GatherPixelRefs(grid_cell_size_); |
return true; |
} |