OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 DisplayItem_h | 5 #ifndef DisplayItem_h |
6 #define DisplayItem_h | 6 #define DisplayItem_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/graphics/paint/DisplayItemClient.h" | 9 #include "platform/graphics/paint/DisplayItemClient.h" |
10 #include "wtf/Assertions.h" | 10 #include "wtf/Assertions.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 BeginSubtreeFirst, | 166 BeginSubtreeFirst, |
167 BeginSubtreePaintPhaseFirst = BeginSubtreeFirst, | 167 BeginSubtreePaintPhaseFirst = BeginSubtreeFirst, |
168 BeginSubtreePaintPhaseLast = BeginSubtreePaintPhaseFirst + PaintPhaseMax
, | 168 BeginSubtreePaintPhaseLast = BeginSubtreePaintPhaseFirst + PaintPhaseMax
, |
169 BeginSubtreeLast = BeginSubtreePaintPhaseLast, | 169 BeginSubtreeLast = BeginSubtreePaintPhaseLast, |
170 | 170 |
171 EndSubtreeFirst, | 171 EndSubtreeFirst, |
172 EndSubtreePaintPhaseFirst = EndSubtreeFirst, | 172 EndSubtreePaintPhaseFirst = EndSubtreeFirst, |
173 EndSubtreePaintPhaseLast = EndSubtreePaintPhaseFirst + PaintPhaseMax, | 173 EndSubtreePaintPhaseLast = EndSubtreePaintPhaseFirst + PaintPhaseMax, |
174 EndSubtreeLast = EndSubtreePaintPhaseLast, | 174 EndSubtreeLast = EndSubtreePaintPhaseLast, |
175 | 175 |
176 TypeLast = EndSubtreeLast | 176 UninitializedType, |
| 177 TypeLast = UninitializedType |
177 }; | 178 }; |
178 | 179 |
179 struct Id { | 180 struct Id { |
180 Id(DisplayItemClient c, Type t) : client(c), type(t), scopeId(0), scopeC
ontainer(nullptr) | 181 Id(DisplayItemClient c, Type t) : client(c), type(t), scopeId(0), scopeC
ontainer(nullptr) |
181 { | 182 { |
182 ASSERT(c); | 183 ASSERT(c); |
183 } | 184 } |
184 | 185 |
185 bool operator==(const Id& other) const | 186 bool operator==(const Id& other) const |
186 { | 187 { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override
= 0; | 352 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override
= 0; |
352 #endif | 353 #endif |
353 | 354 |
354 private: | 355 private: |
355 virtual bool isEnd() const override final { return true; } | 356 virtual bool isEnd() const override final { return true; } |
356 }; | 357 }; |
357 | 358 |
358 } // namespace blink | 359 } // namespace blink |
359 | 360 |
360 #endif // DisplayItem_h | 361 #endif // DisplayItem_h |
OLD | NEW |