Updated instructions for debugging SkPictures from Chromium

113 views
Skip to first unread message

Philip Rogers

unread,
Jul 6, 2016, 8:22:50 PM7/6/16
to paint-dev, Mike Klein
Now you can debug SkPictures using SkPictures. The Skia team wrote a new SkPicture debugger using Polymer and hosted it (semi-restricted access, but it's easy to run locally too).

Option A for devtools habitués:
  1) Run Chromium or Content Shell with --enable-gpu-benchmarking --no-sandbox
  2) Open the devtools console
  3) chrome.gpuBenchmarking.printToSkPicture('/tmp/awesomepicture.skp');
  4) Upload to https://debugger.skia.org!

Option B for friends of catapult/tracing:
  1) Run Chromium with --enable-gpu-benchmarking --no-sandbox
  2) Open a second tab and navigate to chrome://tracing
  3) Press Record, choose "Frame Viewer", press Record.
  4) Switch to the traced tab, then switch back to tracing.
  5) Scroll down and click on one of the green dots next to "cc::DisplayItemList"
  6) Click "Export list as SkPicture"
  7) Upload to https://debugger.skia.org!


Happy debugging.




Chris Harrelson

unread,
Jul 6, 2016, 8:25:04 PM7/6/16
to Philip Rogers, paint-dev, Mike Klein
Holy Spaceballs!!!

--
You received this message because you are subscribed to the Google Groups "paint-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paint-dev+...@chromium.org.
To post to this group, send email to pain...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/paint-dev/CAJgFLLugdpbZ1RFGxi9_Yv0fqo8T9Up_QO49%3D4GioRTK6vGuLQ%40mail.gmail.com.

Stephen Chenney

unread,
Aug 5, 2016, 3:28:47 PM8/5/16
to paint-dev, Mike Klein, Philip Rogers
Pro tip, when going to https://debugger.skia.org/, make sure that the authentication flow does not add a '#' to the end of the URL. If it does, remove it before trying to load something.

On Wed, Jul 6, 2016 at 8:24 PM, Chris Harrelson <chri...@chromium.org> wrote:
Holy Spaceballs!!!

On Wed, Jul 6, 2016 at 5:22 PM, 'Philip Rogers' via paint-dev <pain...@chromium.org> wrote:
Now you can debug SkPictures using SkPictures. The Skia team wrote a new SkPicture debugger using Polymer and hosted it (semi-restricted access, but it's easy to run locally too).

Option A for devtools habitués:
  1) Run Chromium or Content Shell with --enable-gpu-benchmarking --no-sandbox
  2) Open the devtools console
  3) chrome.gpuBenchmarking.printToSkPicture('/tmp/awesomepicture.skp');
  4) Upload to https://debugger.skia.org!

Option B for friends of catapult/tracing:
  1) Run Chromium with --enable-gpu-benchmarking --no-sandbox
  2) Open a second tab and navigate to chrome://tracing
  3) Press Record, choose "Frame Viewer", press Record.
  4) Switch to the traced tab, then switch back to tracing.
  5) Scroll down and click on one of the green dots next to "cc::DisplayItemList"
  6) Click "Export list as SkPicture"
  7) Upload to https://debugger.skia.org!


Happy debugging.




--
You received this message because you are subscribed to the Google Groups "paint-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paint-dev+unsubscribe@chromium.org.

--
You received this message because you are subscribed to the Google Groups "paint-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paint-dev+unsubscribe@chromium.org.

To post to this group, send email to pain...@chromium.org.
Reply all
Reply to author
Forward
0 new messages