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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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 TransformDisplayItem_h 5 #ifndef TransformDisplayItem_h
6 #define TransformDisplayItem_h 6 #define TransformDisplayItem_h
7 7
8 #include "platform/graphics/paint/DisplayItem.h" 8 #include "platform/graphics/paint/DisplayItem.h"
9 #include "platform/transforms/AffineTransform.h" 9 #include "platform/transforms/AffineTransform.h"
10 #include "wtf/PassOwnPtr.h"
11 10
12 namespace blink { 11 namespace blink {
13 12
14 class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDispla yItem { 13 class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDispla yItem {
15 public: 14 public:
16 BeginTransformDisplayItem(const DisplayItemClient& client, const AffineTrans form& transform) 15 BeginTransformDisplayItem(const DisplayItemClient& client, const AffineTrans form& transform)
17 : PairedBeginDisplayItem(client, BeginTransform, sizeof(*this)) 16 : PairedBeginDisplayItem(client, BeginTransform, sizeof(*this))
18 , m_transform(transform) { } 17 , m_transform(transform) { }
19 18
20 void replay(GraphicsContext&) const override; 19 void replay(GraphicsContext&) const override;
(...skipping 26 matching lines...) Expand all
47 46
48 private: 47 private:
49 #if ENABLE(ASSERT) 48 #if ENABLE(ASSERT)
50 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot herType == BeginTransform; } 49 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot herType == BeginTransform; }
51 #endif 50 #endif
52 }; 51 };
53 52
54 } // namespace blink 53 } // namespace blink
55 54
56 #endif // TransformDisplayItem_h 55 #endif // TransformDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698