Chromium Code Reviews| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 106 |
| 107 String toTreeString() const; | 107 String toTreeString() const; |
| 108 #endif | 108 #endif |
| 109 | 109 |
| 110 String toString() const; | 110 String toString() const; |
| 111 | 111 |
| 112 bool hasDirectCompositingReasons() const { | 112 bool hasDirectCompositingReasons() const { |
| 113 return m_directCompositingReasons != CompositingReasonNone; | 113 return m_directCompositingReasons != CompositingReasonNone; |
| 114 } | 114 } |
| 115 | 115 |
| 116 CompositingReasons compositingReasons() const { | |
|
wkorman
2017/01/26 22:47:56
If we'd prefer not to expose compositing reasons d
wkorman
2017/01/27 03:53:12
I made this change as I think it's cleaner.
| |
| 117 return m_directCompositingReasons; | |
| 118 } | |
| 119 | |
| 116 const CompositorElementId& compositorElementId() const { | 120 const CompositorElementId& compositorElementId() const { |
| 117 return m_compositorElementId; | 121 return m_compositorElementId; |
| 118 } | 122 } |
| 119 | 123 |
| 120 private: | 124 private: |
| 121 EffectPaintPropertyNode( | 125 EffectPaintPropertyNode( |
| 122 PassRefPtr<const EffectPaintPropertyNode> parent, | 126 PassRefPtr<const EffectPaintPropertyNode> parent, |
| 123 PassRefPtr<const TransformPaintPropertyNode> localTransformSpace, | 127 PassRefPtr<const TransformPaintPropertyNode> localTransformSpace, |
| 124 PassRefPtr<const ClipPaintPropertyNode> outputClip, | 128 PassRefPtr<const ClipPaintPropertyNode> outputClip, |
| 125 CompositorFilterOperations filter, | 129 CompositorFilterOperations filter, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 166 CompositorElementId m_compositorElementId; | 170 CompositorElementId m_compositorElementId; |
| 167 }; | 171 }; |
| 168 | 172 |
| 169 // Redeclared here to avoid ODR issues. | 173 // Redeclared here to avoid ODR issues. |
| 170 // See platform/testing/PaintPrinters.h. | 174 // See platform/testing/PaintPrinters.h. |
| 171 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); | 175 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); |
| 172 | 176 |
| 173 } // namespace blink | 177 } // namespace blink |
| 174 | 178 |
| 175 #endif // EffectPaintPropertyNode_h | 179 #endif // EffectPaintPropertyNode_h |
| OLD | NEW |