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

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: rebase 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
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
index d992af1596b0478de96d720afe773dcf604b1623..46aa79f169f1f5b56d5f0a469d641fc03e2d67dc 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -376,4 +376,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)->EmitTraceSnapshot();
+ }
+ }
+}
+
} // namespace cc
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698