| 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 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" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDispla
yItem { | 14 class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDispla
yItem { |
| 14 public: | 15 public: |
| 15 BeginTransformDisplayItem(const DisplayItemClient& client, const AffineTrans
form& transform) | 16 BeginTransformDisplayItem(const DisplayItemClient& client, const AffineTrans
form& transform) |
| 16 : PairedBeginDisplayItem(client, BeginTransform, sizeof(*this)) | 17 : PairedBeginDisplayItem(client, BeginTransform, sizeof(*this)) |
| 17 , m_transform(transform) { } | 18 , m_transform(transform) { } |
| 18 | 19 |
| 19 void replay(GraphicsContext&) const override; | 20 void replay(GraphicsContext&) const override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 #if ENABLE(ASSERT) | 49 #if ENABLE(ASSERT) |
| 49 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot
herType == BeginTransform; } | 50 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot
herType == BeginTransform; } |
| 50 #endif | 51 #endif |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace blink | 54 } // namespace blink |
| 54 | 55 |
| 55 #endif // TransformDisplayItem_h | 56 #endif // TransformDisplayItem_h |
| OLD | NEW |