| 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" |
| 11 #include "public/platform/WebBlendMode.h" | 11 #include "public/platform/WebBlendMode.h" |
| 12 #ifndef NDEBUG | 12 #ifndef NDEBUG |
| 13 #include "wtf/text/WTFString.h" | 13 #include "platform/wtf/text/WTFString.h" |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class PLATFORM_EXPORT BeginCompositingDisplayItem final | 18 class PLATFORM_EXPORT BeginCompositingDisplayItem final |
| 19 : public PairedBeginDisplayItem { | 19 : public PairedBeginDisplayItem { |
| 20 public: | 20 public: |
| 21 BeginCompositingDisplayItem(const DisplayItemClient& client, | 21 BeginCompositingDisplayItem(const DisplayItemClient& client, |
| 22 const SkBlendMode xferMode, | 22 const SkBlendMode xferMode, |
| 23 const float opacity, | 23 const float opacity, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 #if DCHECK_IS_ON() | 80 #if DCHECK_IS_ON() |
| 81 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { | 81 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { |
| 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 |