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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/ClipDisplayItem.h

Issue 2309193002: Revert of Reland Compile under-invalidation checking in all builds (Closed)
Patch Set: Rebase and manually fix merge conflicts. Created 4 years, 3 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
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 ClipDisplayItem_h 5 #ifndef ClipDisplayItem_h
6 #define ClipDisplayItem_h 6 #define ClipDisplayItem_h
7 7
8 #include "SkRegion.h" 8 #include "SkRegion.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/geometry/FloatRoundedRect.h" 10 #include "platform/geometry/FloatRoundedRect.h"
(...skipping 18 matching lines...) Expand all
29 m_roundedRectClips.swap(roundedRectClips); 29 m_roundedRectClips.swap(roundedRectClips);
30 } 30 }
31 31
32 void replay(GraphicsContext&) const override; 32 void replay(GraphicsContext&) const override;
33 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o verride; 33 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o verride;
34 34
35 private: 35 private:
36 #ifndef NDEBUG 36 #ifndef NDEBUG
37 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; 37 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
38 #endif 38 #endif
39 #if ENABLE(ASSERT)
39 bool equals(const DisplayItem& other) const final 40 bool equals(const DisplayItem& other) const final
40 { 41 {
41 return DisplayItem::equals(other) 42 return DisplayItem::equals(other)
42 && m_clipRect == static_cast<const ClipDisplayItem&>(other).m_clipRe ct 43 && m_clipRect == static_cast<const ClipDisplayItem&>(other).m_clipRe ct
43 && m_roundedRectClips == static_cast<const ClipDisplayItem&>(other). m_roundedRectClips; 44 && m_roundedRectClips == static_cast<const ClipDisplayItem&>(other). m_roundedRectClips;
44 } 45 }
46 #endif
45 47
46 const IntRect m_clipRect; 48 const IntRect m_clipRect;
47 Vector<FloatRoundedRect> m_roundedRectClips; 49 Vector<FloatRoundedRect> m_roundedRectClips;
48 }; 50 };
49 51
50 class PLATFORM_EXPORT EndClipDisplayItem final : public PairedEndDisplayItem { 52 class PLATFORM_EXPORT EndClipDisplayItem final : public PairedEndDisplayItem {
51 public: 53 public:
52 EndClipDisplayItem(const DisplayItemClient& client, Type type) 54 EndClipDisplayItem(const DisplayItemClient& client, Type type)
53 : PairedEndDisplayItem(client, type, sizeof(*this)) 55 : PairedEndDisplayItem(client, type, sizeof(*this))
54 { 56 {
55 ASSERT(isEndClipType(type)); 57 ASSERT(isEndClipType(type));
56 } 58 }
57 59
58 void replay(GraphicsContext&) const override; 60 void replay(GraphicsContext&) const override;
59 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o verride; 61 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o verride;
60 62
61 private: 63 private:
62 #if ENABLE(ASSERT) 64 #if ENABLE(ASSERT)
63 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return Di splayItem::isClipType(otherType); } 65 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return Di splayItem::isClipType(otherType); }
64 #endif 66 #endif
65 }; 67 };
66 68
67 } // namespace blink 69 } // namespace blink
68 70
69 #endif // ClipDisplayItem_h 71 #endif // ClipDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698