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

Unified Diff: cc/resources/display_list_recording_source.cc

Issue 1045953002: Implement DisplayList GatherPixelRefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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;
}
« no previous file with comments | « cc/resources/display_list_recording_source.h ('k') | cc/resources/display_list_recording_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698