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

Side by Side Diff: Source/platform/graphics/paint/Transform3DDisplayItem.h

Issue 1208443003: Remove unused transformOrigin, shrinking the largest DisplayItem (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698