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