OLD | NEW |
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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 ++picture_list_iterator_) { | 369 ++picture_list_iterator_) { |
370 pixel_ref_iterator_ = | 370 pixel_ref_iterator_ = |
371 Picture::PixelRefIterator(layer_rect_, picture_list_iterator_->get()); | 371 Picture::PixelRefIterator(layer_rect_, picture_list_iterator_->get()); |
372 if (pixel_ref_iterator_) | 372 if (pixel_ref_iterator_) |
373 return; | 373 return; |
374 } | 374 } |
375 ++tile_iterator_; | 375 ++tile_iterator_; |
376 } while (AdvanceToTileWithPictures()); | 376 } while (AdvanceToTileWithPictures()); |
377 } | 377 } |
378 | 378 |
| 379 void PicturePileImpl::DidBeginTracing() { |
| 380 gfx::Rect layer_rect(tiling_.total_size()); |
| 381 for (PictureListMap::iterator pli = picture_list_map_.begin(); |
| 382 pli != picture_list_map_.end(); |
| 383 pli++) { |
| 384 PictureList& picture_list = (*pli).second; |
| 385 for (PictureList::iterator picture = picture_list.begin(); |
| 386 picture != picture_list.end(); |
| 387 picture++) { |
| 388 (*picture)->EmitTraceSnapshot(); |
| 389 } |
| 390 } |
| 391 } |
| 392 |
379 } // namespace cc | 393 } // namespace cc |
OLD | NEW |