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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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"
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698