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

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

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: Merge branch 'master' into secondaryid Created 3 years, 7 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/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
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_));
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698