| 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" |
| 11 #include "wtf/Alignment.h" | 11 #include "wtf/Alignment.h" |
| 12 #include "wtf/Assertions.h" | 12 #include "wtf/Assertions.h" |
| 13 | 13 |
| 14 class SkPictureGpuAnalyzer; | |
| 15 | |
| 16 namespace blink { | 14 namespace blink { |
| 17 | 15 |
| 18 struct PaintChunk; | 16 struct PaintChunk; |
| 19 | 17 |
| 20 // kDisplayItemAlignment must be a multiple of alignof(derived display item) for | 18 // kDisplayItemAlignment must be a multiple of alignof(derived display item) for |
| 21 // each derived display item; the ideal value is the least common multiple. | 19 // each derived display item; the ideal value is the least common multiple. |
| 22 // Currently the limiting factor is TransformationMatrix (in | 20 // Currently the limiting factor is TransformationMatrix (in |
| 23 // BeginTransform3DDisplayItem), which requests 16-byte alignment. | 21 // BeginTransform3DDisplayItem), which requests 16-byte alignment. |
| 24 static const size_t kDisplayItemAlignment = | 22 static const size_t kDisplayItemAlignment = |
| 25 WTF_ALIGN_OF(BeginTransform3DDisplayItem); | 23 WTF_ALIGN_OF(BeginTransform3DDisplayItem); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 Range<iterator> itemsInPaintChunk(const PaintChunk&); | 68 Range<iterator> itemsInPaintChunk(const PaintChunk&); |
| 71 Range<const_iterator> itemsInPaintChunk(const PaintChunk&) const; | 69 Range<const_iterator> itemsInPaintChunk(const PaintChunk&) const; |
| 72 | 70 |
| 73 private: | 71 private: |
| 74 Vector<IntRect> m_visualRects; | 72 Vector<IntRect> m_visualRects; |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 } // namespace blink | 75 } // namespace blink |
| 78 | 76 |
| 79 #endif // DisplayItemList_h | 77 #endif // DisplayItemList_h |
| OLD | NEW |