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

Unified Diff: site/user/tips.md

Issue 1220783005: doc: add instructions to capture a `.skp` from chromium (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site/user/tips.md
diff --git a/site/user/tips.md b/site/user/tips.md
index e76990b783b67bb430ff79e21cc6cf8f18fab94c..9b86bf1b4c885595e3ccd284fc18e43472e5eb5a 100644
--- a/site/user/tips.md
+++ b/site/user/tips.md
@@ -16,6 +16,27 @@ drawBitmapNine():
bitmap.extractSubset(&subset, rect);
canvas->drawBitmapNine(subset, ...);
+### Capturing a `.skp` file on a web page in Chromium.
+
+1. Launch Chrome or Chromium with `--no-sandbox --enable-gpu-benchmarking`
+2. Open the JS console (ctrl-shift-J)
+3. Execute: `chrome.gpuBenchmarking.printToSkPicture('/tmp')`
+ This returns "undefined" on success.
+
+Open the resulting file in the Skia Debugger:
+
+ bin/sync-and-gyp
+ ninja -C out/Release debugger
+ out/Release/debugger /tmp/layer_0.skp &
+
+Or use `dm` to rasterize it.
+
+ bin/sync-and-gyp
+ ninja -C out/Release dm
+ out/Release/dm --src skp --skps /tmp/layer_0.skp -w /tmp \
+ --config 8888 gpu pdf --verbose
+ ls -l /tmp/*/skp/layer_0.skp.*
+
FAQ
---
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698