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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 #include <limits> 6 #include <limits>
7 7
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "cc/base/region.h" 9 #include "cc/base/region.h"
10 #include "cc/debug/debug_colors.h" 10 #include "cc/debug/debug_colors.h"
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 pixel_ref_iterator_ = Picture::PixelRefIterator( 370 pixel_ref_iterator_ = Picture::PixelRefIterator(
371 layer_rect_, 371 layer_rect_,
372 *picture_list_iterator_); 372 *picture_list_iterator_);
373 if (pixel_ref_iterator_) 373 if (pixel_ref_iterator_)
374 return; 374 return;
375 } 375 }
376 ++tile_iterator_; 376 ++tile_iterator_;
377 } while (AdvanceToTileWithPictures()); 377 } while (AdvanceToTileWithPictures());
378 } 378 }
379 379
380 void PicturePileImpl::DidBeginTracing() {
381 gfx::Rect layer_rect(tiling_.total_size());
382 for (PictureListMap::iterator pli = picture_list_map_.begin();
383 pli != picture_list_map_.end();
384 pli++) {
385 PictureList& picture_list = (*pli).second;
386 for (PictureList::iterator picture = picture_list.begin();
387 picture != picture_list.end();
388 picture++) {
389 (*picture)->DidBeginTracing();
390 }
391 }
392 }
393
380 } // namespace cc 394 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698