Chromium Code Reviews| 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 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 Loading... | |
| 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 |
| OLD | NEW |