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

Unified Diff: cc/resources/picture_pile_impl.cc

Issue 15774010: Add TRACE_EVENT_IS_NEW_TRACE as a way to snapshot objects at start of recording (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address enne feedback Created 7 years, 7 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/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
index c91e531d9d7e50cbb1710ab78d48f95678bf0a3e..90dfe2c637cb6a4e38539af6085ba1ec26cac2f0 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -377,4 +377,18 @@ void PicturePileImpl::PixelRefIterator::AdvanceToPictureWithPixelRefs() {
} while (AdvanceToTileWithPictures());
}
+void PicturePileImpl::DidBeginTracing() {
+ gfx::Rect layer_rect(tiling_.total_size());
+ for (PictureListMap::iterator pli = picture_list_map_.begin();
+ pli != picture_list_map_.end();
+ pli++) {
+ PictureList& picture_list = (*pli).second;
+ for (PictureList::iterator picture = picture_list.begin();
+ picture != picture_list.end();
+ picture++) {
+ (*picture)->DidBeginTracing();
+ }
+ }
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698