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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.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 EffectPaintPropertyNode_h 5 #ifndef EffectPaintPropertyNode_h
6 #define EffectPaintPropertyNode_h 6 #define EffectPaintPropertyNode_h
7 7
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/graphics/CompositorElementId.h" 10 #include "platform/graphics/CompositorElementId.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // because SkImageFilter doesn't have an equality operator. 95 // because SkImageFilter doesn't have an equality operator.
96 bool operator==(const EffectPaintPropertyNode& o) const { 96 bool operator==(const EffectPaintPropertyNode& o) const {
97 return m_parent == o.m_parent && 97 return m_parent == o.m_parent &&
98 m_localTransformSpace == o.m_localTransformSpace && 98 m_localTransformSpace == o.m_localTransformSpace &&
99 m_outputClip == o.m_outputClip && 99 m_outputClip == o.m_outputClip &&
100 m_filter.equalsIgnoringReferenceFilters(o.m_filter) && 100 m_filter.equalsIgnoringReferenceFilters(o.m_filter) &&
101 m_opacity == o.m_opacity && m_blendMode == o.m_blendMode && 101 m_opacity == o.m_opacity && m_blendMode == o.m_blendMode &&
102 m_directCompositingReasons == o.m_directCompositingReasons && 102 m_directCompositingReasons == o.m_directCompositingReasons &&
103 m_compositorElementId == o.m_compositorElementId; 103 m_compositorElementId == o.m_compositorElementId;
104 } 104 }
105
106 String toTreeString() const;
105 #endif 107 #endif
106 108
107 String toString() const; 109 String toString() const;
108 110
109 bool hasDirectCompositingReasons() const { 111 bool hasDirectCompositingReasons() const {
110 return m_directCompositingReasons != CompositingReasonNone; 112 return m_directCompositingReasons != CompositingReasonNone;
111 } 113 }
112 114
113 const CompositorElementId& compositorElementId() const { 115 const CompositorElementId& compositorElementId() const {
114 return m_compositorElementId; 116 return m_compositorElementId;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 CompositorElementId m_compositorElementId; 165 CompositorElementId m_compositorElementId;
164 }; 166 };
165 167
166 // Redeclared here to avoid ODR issues. 168 // Redeclared here to avoid ODR issues.
167 // See platform/testing/PaintPrinters.h. 169 // See platform/testing/PaintPrinters.h.
168 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); 170 void PrintTo(const EffectPaintPropertyNode&, std::ostream*);
169 171
170 } // namespace blink 172 } // namespace blink
171 173
172 #endif // EffectPaintPropertyNode_h 174 #endif // EffectPaintPropertyNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698