| Index: Source/platform/graphics/paint/Transform3DDisplayItem.h
|
| diff --git a/Source/platform/graphics/paint/Transform3DDisplayItem.h b/Source/platform/graphics/paint/Transform3DDisplayItem.h
|
| index 0da46241de9dc02f44311b9b9448bb66c58e78c6..5f458f34407a01d83d6fc729028f4c9f35f31ad4 100644
|
| --- a/Source/platform/graphics/paint/Transform3DDisplayItem.h
|
| +++ b/Source/platform/graphics/paint/Transform3DDisplayItem.h
|
| @@ -13,18 +13,11 @@
|
| namespace blink {
|
|
|
| class PLATFORM_EXPORT BeginTransform3DDisplayItem : public PairedBeginDisplayItem {
|
| - WTF_MAKE_FAST_ALLOCATED(BeginTransform3DDisplayItem);
|
| public:
|
| - static PassOwnPtr<BeginTransform3DDisplayItem> create(const DisplayItemClientWrapper& client, DisplayItem::Type type, const TransformationMatrix& transform)
|
| + void setNew(const TransformationMatrix& transform)
|
| {
|
| - return adoptPtr(new BeginTransform3DDisplayItem(client, type, transform));
|
| - }
|
| -
|
| - BeginTransform3DDisplayItem(const DisplayItemClientWrapper& client, DisplayItem::Type type, const TransformationMatrix& transform)
|
| - : PairedBeginDisplayItem(client, type)
|
| - , m_transform(transform)
|
| - {
|
| - ASSERT(DisplayItem::isTransform3DType(type));
|
| + m_transform = transform;
|
| + ASSERT(DisplayItem::isTransform3DType(type()));
|
| }
|
|
|
| virtual void replay(GraphicsContext&) override;
|
| @@ -33,24 +26,11 @@ public:
|
| const TransformationMatrix& transform() const { return m_transform; }
|
|
|
| private:
|
| - const TransformationMatrix m_transform;
|
| - FloatPoint3D m_transformOrigin;
|
| + TransformationMatrix m_transform;
|
| };
|
|
|
| class PLATFORM_EXPORT EndTransform3DDisplayItem : public PairedEndDisplayItem {
|
| - WTF_MAKE_FAST_ALLOCATED(EndTransform3DDisplayItem);
|
| public:
|
| - static PassOwnPtr<EndTransform3DDisplayItem> create(const DisplayItemClientWrapper& client, DisplayItem::Type type)
|
| - {
|
| - return adoptPtr(new EndTransform3DDisplayItem(client, type));
|
| - }
|
| -
|
| - EndTransform3DDisplayItem(const DisplayItemClientWrapper& client, DisplayItem::Type type)
|
| - : PairedEndDisplayItem(client, type)
|
| - {
|
| - ASSERT(DisplayItem::isEndTransform3DType(type));
|
| - }
|
| -
|
| virtual void replay(GraphicsContext&) override;
|
| virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
|
|
|
|
|