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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 PassRefPtr<const EffectPaintPropertyNode> parent, | 144 PassRefPtr<const EffectPaintPropertyNode> parent, |
145 PassRefPtr<const TransformPaintPropertyNode> localTransformSpace, | 145 PassRefPtr<const TransformPaintPropertyNode> localTransformSpace, |
146 PassRefPtr<const ClipPaintPropertyNode> outputClip, | 146 PassRefPtr<const ClipPaintPropertyNode> outputClip, |
147 ColorFilter colorFilter, | 147 ColorFilter colorFilter, |
148 CompositorFilterOperations filter, | 148 CompositorFilterOperations filter, |
149 float opacity, | 149 float opacity, |
150 SkBlendMode blendMode, | 150 SkBlendMode blendMode, |
151 CompositingReasons directCompositingReasons, | 151 CompositingReasons directCompositingReasons, |
152 CompositorElementId compositorElementId, | 152 CompositorElementId compositorElementId, |
153 const FloatPoint& paintOffset) | 153 const FloatPoint& paintOffset) |
154 : m_parent(parent), | 154 : m_parent(std::move(parent)), |
155 m_localTransformSpace(localTransformSpace), | 155 m_localTransformSpace(std::move(localTransformSpace)), |
156 m_outputClip(outputClip), | 156 m_outputClip(std::move(outputClip)), |
157 m_colorFilter(colorFilter), | 157 m_colorFilter(colorFilter), |
158 m_filter(std::move(filter)), | 158 m_filter(std::move(filter)), |
159 m_opacity(opacity), | 159 m_opacity(opacity), |
160 m_blendMode(blendMode), | 160 m_blendMode(blendMode), |
161 m_directCompositingReasons(directCompositingReasons), | 161 m_directCompositingReasons(directCompositingReasons), |
162 m_compositorElementId(compositorElementId), | 162 m_compositorElementId(compositorElementId), |
163 m_paintOffset(paintOffset) {} | 163 m_paintOffset(paintOffset) {} |
164 | 164 |
165 RefPtr<const EffectPaintPropertyNode> m_parent; | 165 RefPtr<const EffectPaintPropertyNode> m_parent; |
166 // The local transform space serves two purposes: | 166 // The local transform space serves two purposes: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 FloatPoint m_paintOffset; | 198 FloatPoint m_paintOffset; |
199 }; | 199 }; |
200 | 200 |
201 // Redeclared here to avoid ODR issues. | 201 // Redeclared here to avoid ODR issues. |
202 // See platform/testing/PaintPrinters.h. | 202 // See platform/testing/PaintPrinters.h. |
203 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); | 203 void PrintTo(const EffectPaintPropertyNode&, std::ostream*); |
204 | 204 |
205 } // namespace blink | 205 } // namespace blink |
206 | 206 |
207 #endif // EffectPaintPropertyNode_h | 207 #endif // EffectPaintPropertyNode_h |
OLD | NEW |