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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.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 | « third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp ('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/ScrollPaintPropertyNode.h" 5 #include "platform/graphics/paint/ScrollPaintPropertyNode.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 ScrollPaintPropertyNode* ScrollPaintPropertyNode::root() { 9 ScrollPaintPropertyNode* ScrollPaintPropertyNode::root() {
10 DEFINE_STATIC_REF(ScrollPaintPropertyNode, root, 10 DEFINE_STATIC_REF(ScrollPaintPropertyNode, root,
11 (ScrollPaintPropertyNode::create( 11 (ScrollPaintPropertyNode::create(
12 nullptr, TransformPaintPropertyNode::root(), IntSize(), 12 nullptr, TransformPaintPropertyNode::root(), IntSize(),
13 IntSize(), false, false, 0))); 13 IntSize(), false, false, 0)));
14 return root; 14 return root;
15 } 15 }
16 16
17 String ScrollPaintPropertyNode::toString() const { 17 String ScrollPaintPropertyNode::toString() const {
18 FloatSize scrollOffset = 18 FloatSize scrollOffset =
19 m_scrollOffsetTranslation->matrix().to2DTranslation(); 19 m_scrollOffsetTranslation->matrix().to2DTranslation();
20 std::string mainThreadScrollingReasonsAsText = 20 std::string mainThreadScrollingReasonsAsText =
21 MainThreadScrollingReason::mainThreadScrollingReasonsAsText( 21 MainThreadScrollingReason::mainThreadScrollingReasonsAsText(
22 m_mainThreadScrollingReasons); 22 m_mainThreadScrollingReasons);
23 return String::format( 23 return String::format(
24 "scrollOffsetTranslation=%s clip=%s bounds=%s " 24 "scrollOffsetTranslation=%s clip=%s bounds=%s userScrollableHorizontal=%s"
25 "mainThreadScrollingReasons=%s", 25 " userScrollableVertical=%s mainThreadScrollingReasons=%s",
26 scrollOffset.toString().ascii().data(), m_clip.toString().ascii().data(), 26 scrollOffset.toString().ascii().data(), m_clip.toString().ascii().data(),
27 m_bounds.toString().ascii().data(), 27 m_bounds.toString().ascii().data(),
28 m_userScrollableHorizontal ? "yes" : "no",
29 m_userScrollableVertical ? "yes" : "no",
28 mainThreadScrollingReasonsAsText.c_str()); 30 mainThreadScrollingReasonsAsText.c_str());
29 } 31 }
30 32
31 } // namespace blink 33 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698