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

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: fix crash w/ unittest 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 296036d7c3e10961d4df016c560bb5ef11fc5581..e6488687451c64f6811206446aba1f633a1b6a0c 100644
--- a/cc/resources/display_list_recording_source.cc
+++ b/cc/resources/display_list_recording_source.cc
@@ -26,7 +26,8 @@ const int kOpCountThatIsOkToAnalyze = 10;
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 @@ DisplayListRecordingSource::DisplayListRecordingSource()
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 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation(
display_list_->EmitTraceSnapshot();
display_list_->CreateAndCacheSkPicture();
+ if (gather_pixel_refs_)
+ display_list_->GatherPixelRefs(grid_cell_size_);
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