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 #include "platform/graphics/paint/PropertyTreeState.h" | 7 #include "platform/graphics/paint/PropertyTreeState.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... | |
32 // The root transform node references the root scroll node so a scroll node | 32 // The root transform node references the root scroll node so a scroll node |
33 // should always exist. | 33 // should always exist. |
34 NOTREACHED(); | 34 NOTREACHED(); |
35 return nullptr; | 35 return nullptr; |
36 } | 36 } |
37 | 37 |
38 String TransformPaintPropertyNode::ToString() const { | 38 String TransformPaintPropertyNode::ToString() const { |
39 auto transform = String::Format( | 39 auto transform = String::Format( |
40 "parent=%p transform=%s origin=%s flattensInheritedTransform=%s " | 40 "parent=%p transform=%s origin=%s flattensInheritedTransform=%s " |
41 "renderingContextId=%x directCompositingReasons=%s " | 41 "renderingContextId=%x directCompositingReasons=%s " |
42 "compositorElementId=(%d, %d)", | 42 "compositorElementId=%lu", |
43 parent_.Get(), matrix_.ToString().Ascii().data(), | 43 parent_.Get(), matrix_.ToString().Ascii().data(), |
44 origin_.ToString().Ascii().data(), | 44 origin_.ToString().Ascii().data(), |
45 flattens_inherited_transform_ ? "yes" : "no", rendering_context_id_, | 45 flattens_inherited_transform_ ? "yes" : "no", rendering_context_id_, |
46 CompositingReasonsAsString(direct_compositing_reasons_).Ascii().data(), | 46 CompositingReasonsAsString(direct_compositing_reasons_).Ascii().data(), |
47 compositor_element_id_.primaryId, compositor_element_id_.secondaryId); | 47 static_cast<unsigned long>(compositor_element_id_.id)); |
suzyh_UTC10 (ex-contributor)
2017/05/08 01:04:15
Ditto here, is the cast required?
chrishtr
2017/05/08 16:32:13
Ditto.
| |
48 if (scroll_) | 48 if (scroll_) |
49 return transform + " scroll=" + scroll_->ToString(); | 49 return transform + " scroll=" + scroll_->ToString(); |
50 return transform; | 50 return transform; |
51 } | 51 } |
52 | 52 |
53 #if DCHECK_IS_ON() | 53 #if DCHECK_IS_ON() |
54 | 54 |
55 String TransformPaintPropertyNode::ToTreeString() const { | 55 String TransformPaintPropertyNode::ToTreeString() const { |
56 return blink::PropertyTreeStatePrinter<blink::TransformPaintPropertyNode>() | 56 return blink::PropertyTreeStatePrinter<blink::TransformPaintPropertyNode>() |
57 .PathAsString(this); | 57 .PathAsString(this); |
58 } | 58 } |
59 | 59 |
60 #endif | 60 #endif |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
OLD | NEW |