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

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

Issue 2639143002: Revert of Move property tree debugging code to platform/graphics/paint/. (Closed)
Patch Set: 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698