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/TransformPaintPropertyNode.h" | 5 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 TransformPaintPropertyNode* TransformPaintPropertyNode::root() { | 9 TransformPaintPropertyNode* TransformPaintPropertyNode::root() { |
10 DEFINE_STATIC_REF(TransformPaintPropertyNode, root, | 10 DEFINE_STATIC_REF(TransformPaintPropertyNode, root, |
11 (TransformPaintPropertyNode::create( | 11 (TransformPaintPropertyNode::create( |
12 nullptr, TransformationMatrix(), FloatPoint3D()))); | 12 nullptr, TransformationMatrix(), FloatPoint3D()))); |
13 return root; | 13 return root; |
14 } | 14 } |
15 | 15 |
16 String TransformPaintPropertyNode::toString() const { | 16 String TransformPaintPropertyNode::toString() const { |
17 return String::format( | 17 return String::format( |
18 "parent=%p transform=%s origin=%s flattensInheritedTransform=%s " | 18 "parent=%p transform=%s origin=%s flattensInheritedTransform=%s " |
19 "renderContextID=%x directCompositingReasons=%s", | 19 "renderingContextId=%x directCompositingReasons=%s " |
| 20 "compositorElementId=(%d, " |
| 21 "%d)", |
20 m_parent.get(), m_matrix.toString().ascii().data(), | 22 m_parent.get(), m_matrix.toString().ascii().data(), |
21 m_origin.toString().ascii().data(), | 23 m_origin.toString().ascii().data(), |
22 m_flattensInheritedTransform ? "yes" : "no", m_renderingContextId, | 24 m_flattensInheritedTransform ? "yes" : "no", m_renderingContextId, |
23 compositingReasonsAsString(m_directCompositingReasons).ascii().data()); | 25 compositingReasonsAsString(m_directCompositingReasons).ascii().data(), |
| 26 m_compositorElementId.primaryId, m_compositorElementId.secondaryId); |
24 } | 27 } |
25 | 28 |
26 } // namespace blink | 29 } // namespace blink |
OLD | NEW |