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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp

Issue 2647063002: Move property tree debugging code to platform/graphics/paint/ (try #2) (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 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
7 namespace blink { 9 namespace blink {
8 10
9 EffectPaintPropertyNode* EffectPaintPropertyNode::root() { 11 EffectPaintPropertyNode* EffectPaintPropertyNode::root() {
10 DEFINE_STATIC_REF( 12 DEFINE_STATIC_REF(
11 EffectPaintPropertyNode, root, 13 EffectPaintPropertyNode, root,
12 (EffectPaintPropertyNode::create( 14 (EffectPaintPropertyNode::create(
13 nullptr, TransformPaintPropertyNode::root(), 15 nullptr, TransformPaintPropertyNode::root(),
14 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0, 16 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0,
15 SkBlendMode::kSrcOver))); 17 SkBlendMode::kSrcOver)));
16 return root; 18 return root;
(...skipping 10 matching lines...) Expand all
27 return String::format( 29 return String::format(
28 "parent=%p localTransformSpace=%p outputClip=%p opacity=%f filter=%s " 30 "parent=%p localTransformSpace=%p outputClip=%p opacity=%f filter=%s "
29 "blendMode=%s directCompositingReasons=%s compositorElementId=(%d, %d)", 31 "blendMode=%s directCompositingReasons=%s compositorElementId=(%d, %d)",
30 m_parent.get(), m_localTransformSpace.get(), m_outputClip.get(), 32 m_parent.get(), m_localTransformSpace.get(), m_outputClip.get(),
31 m_opacity, m_filter.toString().ascii().data(), 33 m_opacity, m_filter.toString().ascii().data(),
32 SkBlendMode_Name(m_blendMode), 34 SkBlendMode_Name(m_blendMode),
33 compositingReasonsAsString(m_directCompositingReasons).ascii().data(), 35 compositingReasonsAsString(m_directCompositingReasons).ascii().data(),
34 m_compositorElementId.primaryId, m_compositorElementId.secondaryId); 36 m_compositorElementId.primaryId, m_compositorElementId.secondaryId);
35 } 37 }
36 38
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
37 } // namespace blink 48 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698