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

Unified Diff: cc/resources/display_item_list.cc

Issue 1045953002: Implement DisplayList GatherPixelRefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add guard for GatherPixelRefs 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_item_list.cc
diff --git a/cc/resources/display_item_list.cc b/cc/resources/display_item_list.cc
index f8ffbfd184b719d447447b35d58a867ec42d3940..b09111b82ba73c409928b8a2813df508358e2ae8 100644
--- a/cc/resources/display_item_list.cc
+++ b/cc/resources/display_item_list.cc
@@ -143,4 +143,13 @@ void DisplayItemList::EmitTraceSnapshot() const {
"cc::DisplayItemList", this, AsValue());
}
+void DisplayItemList::GatherPixelRefs(const gfx::Size& grid_cell_size) {
+ DCHECK(picture_);
+ pixel_refs_ = make_scoped_ptr(new PixelRefMap(grid_cell_size));
+ DCHECK(pixel_refs_->empty());
vmpstr 2015/03/31 17:10:31 I don't think this is too useful, since you just c
+ if (!picture_->willPlayBackBitmaps())
+ return;
+
+ pixel_refs_->GatherPixelRefsFromPicture(picture_.get());
+}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698