| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/graphics/paint/DisplayItemList.h" | 5 #include "platform/graphics/paint/DisplayItemList.h" |
| 6 | 6 |
| 7 #include "platform/graphics/paint/DrawingDisplayItem.h" | 7 #include "platform/graphics/paint/DrawingDisplayItem.h" |
| 8 #include "platform/graphics/paint/PaintChunk.h" | 8 #include "platform/graphics/paint/PaintChunk.h" |
| 9 #include "third_party/skia/include/core/SkPictureAnalyzer.h" | 9 #include "third_party/skia/include/core/SkPictureAnalyzer.h" |
| 10 | 10 |
| 11 #ifndef NDEBUG | 11 #ifndef NDEBUG |
| 12 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 // Whitespace change to trigger PRESUBMIT.py extra trybots. |
| 16 |
| 15 namespace blink { | 17 namespace blink { |
| 16 | 18 |
| 17 DisplayItem& DisplayItemList::appendByMoving(DisplayItem& item) | 19 DisplayItem& DisplayItemList::appendByMoving(DisplayItem& item) |
| 18 { | 20 { |
| 19 #ifndef NDEBUG | 21 #ifndef NDEBUG |
| 20 String originalDebugString = item.asDebugString(); | 22 String originalDebugString = item.asDebugString(); |
| 21 #endif | 23 #endif |
| 22 ASSERT(item.hasValidClient()); | 24 ASSERT(item.hasValidClient()); |
| 23 DisplayItem& result = ContiguousContainer::appendByMoving(item, item.derived
Size()); | 25 DisplayItem& result = ContiguousContainer::appendByMoving(item, item.derived
Size()); |
| 24 // ContiguousContainer::appendByMoving() calls an in-place constructor | 26 // ContiguousContainer::appendByMoving() calls an in-place constructor |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 return Range<iterator>(begin() + paintChunk.beginIndex, begin() + paintChunk
.endIndex); | 74 return Range<iterator>(begin() + paintChunk.beginIndex, begin() + paintChunk
.endIndex); |
| 73 } | 75 } |
| 74 | 76 |
| 75 DisplayItemList::Range<DisplayItemList::const_iterator> | 77 DisplayItemList::Range<DisplayItemList::const_iterator> |
| 76 DisplayItemList::itemsInPaintChunk(const PaintChunk& paintChunk) const | 78 DisplayItemList::itemsInPaintChunk(const PaintChunk& paintChunk) const |
| 77 { | 79 { |
| 78 return Range<const_iterator>(begin() + paintChunk.beginIndex, begin() + pain
tChunk.endIndex); | 80 return Range<const_iterator>(begin() + paintChunk.beginIndex, begin() + pain
tChunk.endIndex); |
| 79 } | 81 } |
| 80 | 82 |
| 81 } // namespace blink | 83 } // namespace blink |
| OLD | NEW |