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 #include "wtf/PassOwnPtr.h" | |
13 #ifndef NDEBUG | 12 #ifndef NDEBUG |
14 #include "wtf/text/WTFString.h" | 13 #include "wtf/text/WTFString.h" |
15 #endif | 14 #endif |
16 | 15 |
17 namespace blink { | 16 namespace blink { |
18 | 17 |
19 class PLATFORM_EXPORT BeginCompositingDisplayItem final : public PairedBeginDisp
layItem { | 18 class PLATFORM_EXPORT BeginCompositingDisplayItem final : public PairedBeginDisp
layItem { |
20 public: | 19 public: |
21 BeginCompositingDisplayItem(const DisplayItemClient& client, const SkXfermod
e::Mode xferMode, const float opacity, const FloatRect* bounds, ColorFilter colo
rFilter = ColorFilterNone) | 20 BeginCompositingDisplayItem(const DisplayItemClient& client, const SkXfermod
e::Mode xferMode, const float opacity, const FloatRect* bounds, ColorFilter colo
rFilter = ColorFilterNone) |
22 : PairedBeginDisplayItem(client, BeginCompositing, sizeof(*this)) | 21 : PairedBeginDisplayItem(client, BeginCompositing, sizeof(*this)) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 64 |
66 private: | 65 private: |
67 #if ENABLE(ASSERT) | 66 #if ENABLE(ASSERT) |
68 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot
herType == BeginCompositing; } | 67 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot
herType == BeginCompositing; } |
69 #endif | 68 #endif |
70 }; | 69 }; |
71 | 70 |
72 } // namespace blink | 71 } // namespace blink |
73 | 72 |
74 #endif // CompositingDisplayItem_h | 73 #endif // CompositingDisplayItem_h |
OLD | NEW |