| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | 5 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
| 6 | 6 |
| 7 #include "platform/graphics/paint/PropertyTreeState.h" | |
| 8 | |
| 9 namespace blink { | 7 namespace blink { |
| 10 | 8 |
| 11 EffectPaintPropertyNode* EffectPaintPropertyNode::root() { | 9 EffectPaintPropertyNode* EffectPaintPropertyNode::root() { |
| 12 DEFINE_STATIC_REF( | 10 DEFINE_STATIC_REF( |
| 13 EffectPaintPropertyNode, root, | 11 EffectPaintPropertyNode, root, |
| 14 (EffectPaintPropertyNode::create( | 12 (EffectPaintPropertyNode::create( |
| 15 nullptr, TransformPaintPropertyNode::root(), | 13 nullptr, TransformPaintPropertyNode::root(), |
| 16 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0, | 14 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0, |
| 17 SkBlendMode::kSrcOver))); | 15 SkBlendMode::kSrcOver))); |
| 18 return root; | 16 return root; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 29 return String::format( | 27 return String::format( |
| 30 "parent=%p localTransformSpace=%p outputClip=%p opacity=%f filter=%s " | 28 "parent=%p localTransformSpace=%p outputClip=%p opacity=%f filter=%s " |
| 31 "blendMode=%s directCompositingReasons=%s compositorElementId=(%d, %d)", | 29 "blendMode=%s directCompositingReasons=%s compositorElementId=(%d, %d)", |
| 32 m_parent.get(), m_localTransformSpace.get(), m_outputClip.get(), | 30 m_parent.get(), m_localTransformSpace.get(), m_outputClip.get(), |
| 33 m_opacity, m_filter.toString().ascii().data(), | 31 m_opacity, m_filter.toString().ascii().data(), |
| 34 SkBlendMode_Name(m_blendMode), | 32 SkBlendMode_Name(m_blendMode), |
| 35 compositingReasonsAsString(m_directCompositingReasons).ascii().data(), | 33 compositingReasonsAsString(m_directCompositingReasons).ascii().data(), |
| 36 m_compositorElementId.primaryId, m_compositorElementId.secondaryId); | 34 m_compositorElementId.primaryId, m_compositorElementId.secondaryId); |
| 37 } | 35 } |
| 38 | 36 |
| 39 #if DCHECK_IS_ON() | |
| 40 | |
| 41 String EffectPaintPropertyNode::toTreeString() const { | |
| 42 return blink::PropertyTreeStatePrinter<blink::EffectPaintPropertyNode>() | |
| 43 .pathAsString(this); | |
| 44 } | |
| 45 | |
| 46 #endif | |
| 47 | |
| 48 } // namespace blink | 37 } // namespace blink |
| OLD | NEW |