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

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

Issue 2594083002: Output more information in paint property node toString() (Closed)
Patch Set: Created 3 years, 12 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace blink { 7 namespace blink {
8 8
9 EffectPaintPropertyNode* EffectPaintPropertyNode::root() { 9 EffectPaintPropertyNode* EffectPaintPropertyNode::root() {
10 DEFINE_STATIC_REF( 10 DEFINE_STATIC_REF(
11 EffectPaintPropertyNode, root, 11 EffectPaintPropertyNode, root,
12 (EffectPaintPropertyNode::create( 12 (EffectPaintPropertyNode::create(
13 nullptr, TransformPaintPropertyNode::root(), 13 nullptr, TransformPaintPropertyNode::root(),
14 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0, 14 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0,
15 SkBlendMode::kSrcOver))); 15 SkBlendMode::kSrcOver)));
16 return root; 16 return root;
17 } 17 }
18 18
19 cc::Layer* EffectPaintPropertyNode::ensureDummyLayer() const { 19 cc::Layer* EffectPaintPropertyNode::ensureDummyLayer() const {
20 if (m_dummyLayer) 20 if (m_dummyLayer)
21 return m_dummyLayer.get(); 21 return m_dummyLayer.get();
22 m_dummyLayer = cc::Layer::Create(); 22 m_dummyLayer = cc::Layer::Create();
23 return m_dummyLayer.get(); 23 return m_dummyLayer.get();
24 } 24 }
25 25
26 String EffectPaintPropertyNode::toString() const { 26 String EffectPaintPropertyNode::toString() const {
27 return String::format( 27 return String::format(
28 "localTransformSpace=%p outputClip=%p opacity=%f filter=%s", 28 "localTransformSpace=%p outputClip=%p opacity=%f filter=%s blendMode=%s",
29 m_localTransformSpace.get(), m_outputClip.get(), m_opacity, 29 m_localTransformSpace.get(), m_outputClip.get(), m_opacity,
30 m_filter.toString().ascii().data()); 30 m_filter.toString().ascii().data(), SkBlendMode_Name(m_blendMode));
31 } 31 }
32 32
33 } // namespace blink 33 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698