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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 private: | 65 private: |
66 Iterator m_begin; | 66 Iterator m_begin; |
67 Iterator m_end; | 67 Iterator m_end; |
68 }; | 68 }; |
69 Range<iterator> itemsInPaintChunk(const PaintChunk&); | 69 Range<iterator> itemsInPaintChunk(const PaintChunk&); |
70 Range<const_iterator> itemsInPaintChunk(const PaintChunk&) const; | 70 Range<const_iterator> itemsInPaintChunk(const PaintChunk&) const; |
71 | 71 |
72 enum JsonOptions { | 72 enum JsonOptions { |
73 Default = 0, | 73 Default = 0, |
74 ShowPictures = 1, | 74 ShowPictures = 1, |
75 SkipNonDrawings = 2, | 75 SkipNonDrawings = 1 << 1, |
76 ShowClientDebugName = 4, | 76 ShowClientDebugName = 1 << 2, |
| 77 ShownOnlyDisplayItemTypes = 1 << 3 |
77 }; | 78 }; |
78 typedef unsigned JsonFlags; | 79 typedef unsigned JsonFlags; |
79 | 80 |
80 std::unique_ptr<JSONArray> subsequenceAsJSON(size_t beginIndex, | 81 std::unique_ptr<JSONArray> subsequenceAsJSON(size_t beginIndex, |
81 size_t endIndex, | 82 size_t endIndex, |
82 JsonFlags options) const; | 83 JsonFlags options) const; |
83 | 84 |
84 private: | 85 private: |
85 Vector<IntRect> m_visualRects; | 86 Vector<IntRect> m_visualRects; |
86 }; | 87 }; |
87 | 88 |
88 } // namespace blink | 89 } // namespace blink |
89 | 90 |
90 #endif // DisplayItemList_h | 91 #endif // DisplayItemList_h |
OLD | NEW |