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

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

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Fix build. Update after review. Created 4 years, 1 month 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 CompositingDisplayItem_h 5 #ifndef CompositingDisplayItem_h
6 #define CompositingDisplayItem_h 6 #define CompositingDisplayItem_h
7 7
8 #include "platform/geometry/FloatRect.h" 8 #include "platform/geometry/FloatRect.h"
9 #include "platform/graphics/GraphicsTypes.h" 9 #include "platform/graphics/GraphicsTypes.h"
10 #include "platform/graphics/paint/DisplayItem.h" 10 #include "platform/graphics/paint/DisplayItem.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 : public PairedEndDisplayItem { 70 : public PairedEndDisplayItem {
71 public: 71 public:
72 EndCompositingDisplayItem(const DisplayItemClient& client) 72 EndCompositingDisplayItem(const DisplayItemClient& client)
73 : PairedEndDisplayItem(client, kEndCompositing, sizeof(*this)) {} 73 : PairedEndDisplayItem(client, kEndCompositing, sizeof(*this)) {}
74 74
75 void replay(GraphicsContext&) const override; 75 void replay(GraphicsContext&) const override;
76 void appendToWebDisplayItemList(const IntRect&, 76 void appendToWebDisplayItemList(const IntRect&,
77 WebDisplayItemList*) const override; 77 WebDisplayItemList*) const override;
78 78
79 private: 79 private:
80 #if ENABLE(ASSERT) 80 #ifdef NDEBUG
81 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { 81 bool isEndAndPairedWith(DisplayItem::Type otherType) const final {
Alexander Alekseev 2016/11/18 22:32:15 This is called when '#ifdef NDEBUG'
82 return otherType == kBeginCompositing; 82 return otherType == kBeginCompositing;
83 } 83 }
84 #endif 84 #endif
85 }; 85 };
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // CompositingDisplayItem_h 89 #endif // CompositingDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698