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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h ('k') | no next file » | 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/TransformPaintPropertyNode.h" 5 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
6 6
7 #include "platform/graphics/paint/PropertyTreeState.h"
8
7 namespace blink { 9 namespace blink {
8 10
9 TransformPaintPropertyNode* TransformPaintPropertyNode::root() { 11 TransformPaintPropertyNode* TransformPaintPropertyNode::root() {
10 DEFINE_STATIC_REF(TransformPaintPropertyNode, root, 12 DEFINE_STATIC_REF(TransformPaintPropertyNode, root,
11 (TransformPaintPropertyNode::create( 13 (TransformPaintPropertyNode::create(
12 nullptr, TransformationMatrix(), FloatPoint3D()))); 14 nullptr, TransformationMatrix(), FloatPoint3D())));
13 return root; 15 return root;
14 } 16 }
15 17
16 String TransformPaintPropertyNode::toString() const { 18 String TransformPaintPropertyNode::toString() const {
17 return String::format( 19 return String::format(
18 "parent=%p transform=%s origin=%s flattensInheritedTransform=%s " 20 "parent=%p transform=%s origin=%s flattensInheritedTransform=%s "
19 "renderingContextId=%x directCompositingReasons=%s " 21 "renderingContextId=%x directCompositingReasons=%s "
20 "compositorElementId=(%d, " 22 "compositorElementId=(%d, "
21 "%d)", 23 "%d)",
22 m_parent.get(), m_matrix.toString().ascii().data(), 24 m_parent.get(), m_matrix.toString().ascii().data(),
23 m_origin.toString().ascii().data(), 25 m_origin.toString().ascii().data(),
24 m_flattensInheritedTransform ? "yes" : "no", m_renderingContextId, 26 m_flattensInheritedTransform ? "yes" : "no", m_renderingContextId,
25 compositingReasonsAsString(m_directCompositingReasons).ascii().data(), 27 compositingReasonsAsString(m_directCompositingReasons).ascii().data(),
26 m_compositorElementId.primaryId, m_compositorElementId.secondaryId); 28 m_compositorElementId.primaryId, m_compositorElementId.secondaryId);
27 } 29 }
28 30
31 #if DCHECK_IS_ON()
32
33 String TransformPaintPropertyNode::toTreeString() const {
34 return blink::PropertyTreeStatePrinter<blink::TransformPaintPropertyNode>()
35 .pathAsString(this);
36 }
37
38 #endif
39
29 } // namespace blink 40 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698