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

Issue 2647063002: Move property tree debugging code to platform/graphics/paint/ (try #2) (Closed)

Created:
3 years, 11 months ago by chrishtr
Modified:
3 years, 11 months ago
Reviewers:
pdr.
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, wkorman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move property tree debugging code to platform/graphics/paint/ (try #2) This is a revert of https://codereview.chromium.org/2639143002, with the following fixes: 1. Add a line in PropertyTreeStatePrinter::pathAsString to output "root" 2. Change #ifndef NDEBUG to #if DCHECK_IS_ON() The former fixes the unittest. The latter ensures the test actually runs on the bots, and increases debugging convenience. BUG=682113 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2647063002 Cr-Commit-Position: refs/heads/master@{#445197} Committed: https://chromium.googlesource.com/chromium/src/+/cd60843ee27fdeeb53a6a9f236cf9de4eec5135b

Patch Set 1 #

Patch Set 2 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -87 lines) Patch
M third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.h View 2 chunks +2 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreePrinter.cpp View 1 3 chunks +2 lines, -53 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreePrinterTest.cpp View 6 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ClipPaintPropertyNode.cpp View 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.cpp View 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h View 3 chunks +51 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.cpp View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp View 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp View 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
chrishtr
3 years, 11 months ago (2017-01-20 22:10:07 UTC) #12
pdr.
LGTM
3 years, 11 months ago (2017-01-20 22:11:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2647063002/20001
3 years, 11 months ago (2017-01-20 22:51:35 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/cd60843ee27fdeeb53a6a9f236cf9de4eec5135b
3 years, 11 months ago (2017-01-20 22:56:45 UTC) #18
Xianzhu
A question about debugging with the functions returning Strings: How do you use them in ...
3 years, 11 months ago (2017-01-25 20:36:38 UTC) #19
chrishtr
On 2017/01/25 at 20:36:38, wangxianzhu wrote: > A question about debugging with the functions returning ...
3 years, 11 months ago (2017-01-25 20:42:00 UTC) #21
Xianzhu
On 2017/01/25 20:42:00, chrishtr wrote: > On 2017/01/25 at 20:36:38, wangxianzhu wrote: > > A ...
3 years, 11 months ago (2017-01-25 20:54:06 UTC) #22
chrishtr
3 years, 11 months ago (2017-01-25 20:58:22 UTC) #23
Message was sent while issue was closed.
On 2017/01/25 at 20:54:06, wangxianzhu wrote:
> On 2017/01/25 20:42:00, chrishtr wrote:
> > On 2017/01/25 at 20:36:38, wangxianzhu wrote:
> > > A question about debugging with the functions returning Strings: How do
you
> > use them in gdb?
> > > 
> > > I use:
> > > (gdb) p treeState.transform()->toTreeString()
> > > 
> > > but the output looks not good:
> > > $2 = "root 0x26f1bcbbc010 parent=(nil) transform=identity origin=0,0,0
> > flattensInheritedTransform=no renderingContextId=0
directCompositingReasons=none
> > compositorElementId=(0, 0)\n   0x26f1bcbbc1f0 parent=0x"...
> > > 
> > > I would like something like
> > > (gdb) p showTreeString(treeState.transform())
> > > 
> > > which will print the whole string with '\n's not escaped.
> > 
> > Walter suggested putting the following in ~/.gdbinit to prettyprint strings:
> > 
> > python
> > import sys
> > sys.path.insert(0, "/ssd2/git/chrome/src/third_party/WebKit/Tools/gdb/")
> > sys.path.insert(0, "/ssd2/git/chrome/src/tools/gdb/")
> > import webkit
> > import gdb_chrome
> > end
> > 
> > Not sure if it works.
> 
> I'm using them, but it is suitable to print short strings without formats
because it truncates long strings and escape line breaks to '\n's.
> It seems that we still need functions like showXXXX() besides these toString()
functions for gdb.

Oh, ok. Sure, makese sense to me.

Powered by Google App Engine
This is Rietveld 408576698