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

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

Issue 2638763003: Move property tree debugging code to platform/graphics/paint/. (Closed)
Patch Set: none Created 3 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 ClipPaintPropertyNode_h 5 #ifndef ClipPaintPropertyNode_h
6 #define ClipPaintPropertyNode_h 6 #define ClipPaintPropertyNode_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/FloatRoundedRect.h" 9 #include "platform/geometry/FloatRoundedRect.h"
10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking 69 // The equality operator is used by FindPropertiesNeedingUpdate.h for checking
70 // if a clip node has changed. 70 // if a clip node has changed.
71 bool operator==(const ClipPaintPropertyNode& o) const { 71 bool operator==(const ClipPaintPropertyNode& o) const {
72 return m_parent == o.m_parent && 72 return m_parent == o.m_parent &&
73 m_localTransformSpace == o.m_localTransformSpace && 73 m_localTransformSpace == o.m_localTransformSpace &&
74 m_clipRect == o.m_clipRect && 74 m_clipRect == o.m_clipRect &&
75 m_directCompositingReasons == o.m_directCompositingReasons; 75 m_directCompositingReasons == o.m_directCompositingReasons;
76 } 76 }
77
78 String toTreeString() const;
77 #endif 79 #endif
78 80
79 String toString() const; 81 String toString() const;
80 82
81 bool hasDirectCompositingReasons() const { 83 bool hasDirectCompositingReasons() const {
82 return m_directCompositingReasons != CompositingReasonNone; 84 return m_directCompositingReasons != CompositingReasonNone;
83 } 85 }
84 86
85 private: 87 private:
86 ClipPaintPropertyNode( 88 ClipPaintPropertyNode(
(...skipping 12 matching lines...) Expand all
99 CompositingReasons m_directCompositingReasons; 101 CompositingReasons m_directCompositingReasons;
100 }; 102 };
101 103
102 // Redeclared here to avoid ODR issues. 104 // Redeclared here to avoid ODR issues.
103 // See platform/testing/PaintPrinters.h. 105 // See platform/testing/PaintPrinters.h.
104 void PrintTo(const ClipPaintPropertyNode&, std::ostream*); 106 void PrintTo(const ClipPaintPropertyNode&, std::ostream*);
105 107
106 } // namespace blink 108 } // namespace blink
107 109
108 #endif // ClipPaintPropertyNode_h 110 #endif // ClipPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698