Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: Source/platform/graphics/paint/DisplayItem.h

Issue 1212293003: Clean up BoxClipper (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/paint/BoxClipper.cpp ('k') | Source/platform/graphics/paint/DisplayItem.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/paint/BoxClipper.cpp ('k') | Source/platform/graphics/paint/DisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698