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

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

Issue 2299223002: Compile under-invalidation checking in all builds (Closed)
Patch Set: Resolve conflict Created 4 years, 3 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 | « third_party/WebKit/Source/platform/graphics/paint/Transform3DDisplayItem.h ('k') | 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 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 10
11 namespace blink { 11 namespace blink {
12 12
13 class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDispla yItem { 13 class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDispla yItem {
14 public: 14 public:
15 BeginTransformDisplayItem(const DisplayItemClient& client, const AffineTrans form& transform) 15 BeginTransformDisplayItem(const DisplayItemClient& client, const AffineTrans form& transform)
16 : PairedBeginDisplayItem(client, kBeginTransform, sizeof(*this)) 16 : PairedBeginDisplayItem(client, kBeginTransform, sizeof(*this))
17 , m_transform(transform) { } 17 , m_transform(transform) { }
18 18
19 void replay(GraphicsContext&) const override; 19 void replay(GraphicsContext&) const override;
20 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o verride; 20 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o verride;
21 21
22 const AffineTransform& transform() const { return m_transform; } 22 const AffineTransform& transform() const { return m_transform; }
23 23
24 private: 24 private:
25 #ifndef NDEBUG 25 #ifndef NDEBUG
26 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const final; 26 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const final;
27 #endif 27 #endif
28 #if ENABLE(ASSERT)
29 bool equals(const DisplayItem& other) const final 28 bool equals(const DisplayItem& other) const final
30 { 29 {
31 return DisplayItem::equals(other) 30 return DisplayItem::equals(other)
32 && m_transform == static_cast<const BeginTransformDisplayItem&>(othe r).m_transform; 31 && m_transform == static_cast<const BeginTransformDisplayItem&>(othe r).m_transform;
33 } 32 }
34 #endif
35 33
36 const AffineTransform m_transform; 34 const AffineTransform m_transform;
37 }; 35 };
38 36
39 class PLATFORM_EXPORT EndTransformDisplayItem final : public PairedEndDisplayIte m { 37 class PLATFORM_EXPORT EndTransformDisplayItem final : public PairedEndDisplayIte m {
40 public: 38 public:
41 EndTransformDisplayItem(const DisplayItemClient& client) 39 EndTransformDisplayItem(const DisplayItemClient& client)
42 : PairedEndDisplayItem(client, kEndTransform, sizeof(*this)) { } 40 : PairedEndDisplayItem(client, kEndTransform, sizeof(*this)) { }
43 41
44 void replay(GraphicsContext&) const override; 42 void replay(GraphicsContext&) const override;
45 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o verride; 43 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o verride;
46 44
47 private: 45 private:
48 #if ENABLE(ASSERT) 46 #if ENABLE(ASSERT)
49 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot herType == kBeginTransform; } 47 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return ot herType == kBeginTransform; }
50 #endif 48 #endif
51 }; 49 };
52 50
53 } // namespace blink 51 } // namespace blink
54 52
55 #endif // TransformDisplayItem_h 53 #endif // TransformDisplayItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/Transform3DDisplayItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698