commit | f87bec89720d659aabfe964458a3d671ffdcfccc | [log] [tgz] |
---|---|---|
author | Philip Rogers <pdr@chromium.org> | Tue May 14 21:23:23 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 14 21:23:23 2019 |
tree | ab28f846d87065f87841299bfb5f2ae302f3d9dd | |
parent | dab54417fd06552b801b3639452a5799743762e0 [diff] |
Simplify the debugging of PaintChunks PaintChunks can be printed using --vmodule=*paint_controller*=2 [1] but the output format is verbose. This change introduces another verbosity level to paint_controller: 1) Paint chunks and display item list in compact form. --vmodule=*paint_controller*=1 2) Paint chunks with detailed display item list. --vmodule=*paint_controller*=2 3) Paint chunks with detailed display item list with paint records. --vmodule=*paint_controller*=3 Sample output from --vmodule=*paint_controller*=1: "chunks": [ { "chunk": "LayoutSVGRoot 0x23d6a28338:LayoutSVGRoot svg class='qr':ClipPaintPhaseForeground:0", "state": "t:0x323d114b10 c:0x323d1c4a10 e:0x323d02c190", "displayItems": [ "0x23d6a38018:LayoutSVGPath path:DrawingPaintPhaseForeground:0" ] }, { "chunk": "InlineTextBox 'Text box' 0x23d6a60190:InlineTextBox 'Text box':DrawingPaintPhaseForeground:0", "state": "t:0x323d114840 c:0x323d1c48d0 e:0x323d02c190", "displayItems": [ "0x23d6a60190:InlineTextBox 'Text box':DrawingPaintPhaseForeground:0", "0x23d6a60090:InlineTextBox 'text':DrawingPaintPhaseForeground:0", "0x23d6a60010:InlineTextBox 'more text':DrawingPaintPhaseForeground:0" ] } ] [1] https://docs.google.com/document/d/1vgQY11pxRQUDAufxSsc2xKyQCKGPftZ5wZnjY2El4w8/edit#heading=h.me4dzticloz0 Change-Id: I87c02c16121d63edca4ba1255b3d5aff348013eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1610494 Commit-Queue: Philip Rogers <pdr@chromium.org> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#659659}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .