| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef DisplayItemList_h | 5 #ifndef DisplayItemList_h |
| 6 #define DisplayItemList_h | 6 #define DisplayItemList_h |
| 7 | 7 |
| 8 #include "platform/graphics/ContiguousContainer.h" | 8 #include "platform/graphics/ContiguousContainer.h" |
| 9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
| 10 #include "platform/graphics/paint/Transform3DDisplayItem.h" | 10 #include "platform/graphics/paint/Transform3DDisplayItem.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 {} | 36 {} |
| 37 | 37 |
| 38 DisplayItemList& operator=(DisplayItemList&& source) | 38 DisplayItemList& operator=(DisplayItemList&& source) |
| 39 { | 39 { |
| 40 ContiguousContainer::operator=(std::move(source)); | 40 ContiguousContainer::operator=(std::move(source)); |
| 41 m_visualRects = std::move(source.m_visualRects); | 41 m_visualRects = std::move(source.m_visualRects); |
| 42 m_beginItemIndices = std::move(source.m_beginItemIndices); | 42 m_beginItemIndices = std::move(source.m_beginItemIndices); |
| 43 return *this; | 43 return *this; |
| 44 } | 44 } |
| 45 | 45 |
| 46 DisplayItem& appendByMoving(DisplayItem&, const IntRect& visualRect, SkPictu
reGpuAnalyzer&); | 46 DisplayItem& appendByMoving(DisplayItem&); |
| 47 | 47 |
| 48 IntRect visualRect(unsigned index) const | 48 IntRect visualRect(unsigned index) const |
| 49 { | 49 { |
| 50 ASSERT(index < m_visualRects.size()); | 50 ASSERT(index < m_visualRects.size()); |
| 51 return m_visualRects[index]; | 51 return m_visualRects[index]; |
| 52 } | 52 } |
| 53 | 53 |
| 54 void appendVisualRect(const IntRect& visualRect); | 54 void appendVisualRect(const IntRect& visualRect); |
| 55 | 55 |
| 56 // Useful for iterating with a range-based for loop. | 56 // Useful for iterating with a range-based for loop. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 73 // given visual rect with the begin display item's visual rect. | 73 // given visual rect with the begin display item's visual rect. |
| 74 void growCurrentBeginItemVisualRect(const IntRect& visualRect); | 74 void growCurrentBeginItemVisualRect(const IntRect& visualRect); |
| 75 | 75 |
| 76 Vector<IntRect> m_visualRects; | 76 Vector<IntRect> m_visualRects; |
| 77 Vector<size_t> m_beginItemIndices; | 77 Vector<size_t> m_beginItemIndices; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif // DisplayItemList_h | 82 #endif // DisplayItemList_h |
| OLD | NEW |