| OLD | NEW |
| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // because SkImageFilter doesn't have an equality operator. | 96 // because SkImageFilter doesn't have an equality operator. |
| 97 bool operator==(const EffectPaintPropertyNode& o) const { | 97 bool operator==(const EffectPaintPropertyNode& o) const { |
| 98 return m_parent == o.m_parent && | 98 return m_parent == o.m_parent && |
| 99 m_localTransformSpace == o.m_localTransformSpace && | 99 m_localTransformSpace == o.m_localTransformSpace && |
| 100 m_outputClip == o.m_outputClip && | 100 m_outputClip == o.m_outputClip && |
| 101 m_filter.equalsIgnoringReferenceFilters(o.m_filter) && | 101 m_filter.equalsIgnoringReferenceFilters(o.m_filter) && |
| 102 m_opacity == o.m_opacity && m_blendMode == o.m_blendMode && | 102 m_opacity == o.m_opacity && m_blendMode == o.m_blendMode && |
| 103 m_directCompositingReasons == o.m_directCompositingReasons && | 103 m_directCompositingReasons == o.m_directCompositingReasons && |
| 104 m_compositorElementId == o.m_compositorElementId; | 104 m_compositorElementId == o.m_compositorElementId; |
| 105 } | 105 } |
| 106 |
| 107 String toTreeString() const; |
| 106 #endif | 108 #endif |
| 107 | 109 |
| 108 String toString() const; | 110 String toString() const; |
| 109 | 111 |
| 110 bool hasDirectCompositingReasons() const { | 112 bool hasDirectCompositingReasons() const { |
| 111 return m_directCompositingReasons != CompositingReasonNone; | 113 return m_directCompositingReasons != CompositingReasonNone; |
| 112 } | 114 } |
| 113 | 115 |
| 114 const CompositorElementId& compositorElementId() const { | 116 const CompositorElementId& compositorElementId() const { |
| 115 return m_compositorElementId; | 117 return m_compositorElementId; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 CompositorElementId m_compositorElementId; | 166 CompositorElementId m_compositorElementId; |
| 165 }; | 167 }; |
| 166 | 168 |
| 167 // Redeclared here to avoid ODR issues. | 169 // Redeclared here to avoid ODR issues. |
| 168 // See platform/testing/PaintPrinters.h. | 170 // See platform/testing/PaintPrinters.h. |
| 169 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); | 171 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); |
| 170 | 172 |
| 171 } // namespace blink | 173 } // namespace blink |
| 172 | 174 |
| 173 #endif // EffectPaintPropertyNode_h | 175 #endif // EffectPaintPropertyNode_h |
| OLD | NEW |