Chromium Code Reviews| 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 Transform3DDisplayItem_h | 5 #ifndef Transform3DDisplayItem_h |
| 6 #define Transform3DDisplayItem_h | 6 #define Transform3DDisplayItem_h |
| 7 | 7 |
| 8 #include "platform/graphics/paint/DisplayItem.h" | 8 #include "platform/graphics/paint/DisplayItem.h" |
| 9 #include "platform/transforms/TransformationMatrix.h" | 9 #include "platform/transforms/TransformationMatrix.h" |
| 10 #include "wtf/Assertions.h" | 10 #include "wtf/Assertions.h" |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 ASSERT(DisplayItem::isTransform3DType(type)); | 27 ASSERT(DisplayItem::isTransform3DType(type)); |
| 28 } | 28 } |
| 29 | 29 |
| 30 virtual void replay(GraphicsContext&) override; | 30 virtual void replay(GraphicsContext&) override; |
| 31 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; | 31 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; |
| 32 | 32 |
| 33 const TransformationMatrix& transform() const { return m_transform; } | 33 const TransformationMatrix& transform() const { return m_transform; } |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 const TransformationMatrix m_transform; | 36 const TransformationMatrix m_transform; |
| 37 FloatPoint3D m_transformOrigin; | |
|
chrishtr
2015/06/25 16:49:15
Don't you need to update a constant for the list c
| |
| 38 }; | 37 }; |
| 39 | 38 |
| 40 class PLATFORM_EXPORT EndTransform3DDisplayItem : public PairedEndDisplayItem { | 39 class PLATFORM_EXPORT EndTransform3DDisplayItem : public PairedEndDisplayItem { |
| 41 WTF_MAKE_FAST_ALLOCATED(EndTransform3DDisplayItem); | 40 WTF_MAKE_FAST_ALLOCATED(EndTransform3DDisplayItem); |
| 42 public: | 41 public: |
| 43 static PassOwnPtr<EndTransform3DDisplayItem> create(const DisplayItemClientW rapper& client, DisplayItem::Type type) | 42 static PassOwnPtr<EndTransform3DDisplayItem> create(const DisplayItemClientW rapper& client, DisplayItem::Type type) |
| 44 { | 43 { |
| 45 return adoptPtr(new EndTransform3DDisplayItem(client, type)); | 44 return adoptPtr(new EndTransform3DDisplayItem(client, type)); |
| 46 } | 45 } |
| 47 | 46 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 59 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override final | 58 virtual bool isEndAndPairedWith(DisplayItem::Type otherType) const override final |
| 60 { | 59 { |
| 61 return DisplayItem::transform3DTypeToEndTransform3DType(otherType) == ty pe(); | 60 return DisplayItem::transform3DTypeToEndTransform3DType(otherType) == ty pe(); |
| 62 } | 61 } |
| 63 #endif | 62 #endif |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 } // namespace blink | 65 } // namespace blink |
| 67 | 66 |
| 68 #endif // Transform3DDisplayItem_h | 67 #endif // Transform3DDisplayItem_h |
| OLD | NEW |