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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 (TilingData::Iterator tile_iter(&tiling_, layer_rect); | |
enne (OOO)
2013/05/31 23:27:21
It might be shorter to just iterate through the pi
| |
383 tile_iter; ++tile_iter) { | |
384 PictureListMap::const_iterator map_iter = | |
385 picture_list_map_.find(tile_iter.index()); | |
386 if (map_iter == picture_list_map_.end()) | |
387 continue; | |
388 const PictureList& pic_list= map_iter->second; | |
389 if (pic_list.empty()) | |
390 continue; | |
391 for (PictureList::const_reverse_iterator i = pic_list.rbegin(); | |
392 i != pic_list.rend(); ++i) { | |
393 (*i)->DidBeginTracing(); | |
394 } | |
395 } | |
396 } | |
397 | |
380 } // namespace cc | 398 } // namespace cc |
OLD | NEW |