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 367b23d73a11b5ab432e566dc837d2dda5c62910..208739d0c4a30c6f9e4f5ce2ad1c3bfc69b1b204 100644 |
--- a/cc/resources/display_list_recording_source.cc |
+++ b/cc/resources/display_list_recording_source.cc |
@@ -26,13 +26,15 @@ const int kOpCountThatIsOkToAnalyze = 10; |
namespace cc { |
-DisplayListRecordingSource::DisplayListRecordingSource() |
+DisplayListRecordingSource::DisplayListRecordingSource( |
+ const gfx::Size& grid_cell_size) |
: slow_down_raster_scale_factor_for_debug_(0), |
requires_clear_(false), |
is_solid_color_(false), |
solid_color_(SK_ColorTRANSPARENT), |
background_color_(SK_ColorTRANSPARENT), |
pixel_record_distance_(kPixelDistanceToRecord), |
+ grid_cell_size_(grid_cell_size), |
is_suitable_for_gpu_rasterization_(true) { |
} |
@@ -114,6 +116,7 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation( |
display_list_->EmitTraceSnapshot(); |
display_list_->CreateAndCacheSkPicture(); |
+ display_list_->GatherPixelRefs(grid_cell_size_); |
ajuma
2015/03/30 20:46:37
This should be conditional on gather_pixel_refs_.
weiliangc
2015/03/31 14:04:11
Done.
|
return true; |
} |