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

Unified Diff: site/user/tips.md

Issue 2332783002: Documentation: MSKP (Closed)
Patch Set: 2016-09-12 (Monday) 10:54:37 EDT Created 4 years, 3 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 7e6bc8ae9fbab4168f594d62411f7c126268a85c..110158233a6b972ba2d05b125dd08f666f1e7749 100644
--- a/site/user/tips.md
+++ b/site/user/tips.md
@@ -4,6 +4,7 @@ Tips & FAQ
+ [Gyp Options](#gypdefines)
+ [Bitmap Subsetting](#bitmap-subsetting)
+ [Capture a `.skp` file on a web page in Chromium](#skp-capture)
++ [Capture a `.mskp` file on a web page in Chromium](#mskp-capture)
+ [How to add hardware acceleration in Skia](#hw-acceleration)
+ [Does Skia support Font hinting?](#font-hinting)
+ [Does Skia shape text (kerning)?](#kerning)
@@ -116,6 +117,34 @@ or use Skia's `SampleApp` to view it:
* * *
+<span id="mskp-capture"></span>
+
+Capture a `.mskp` file on a web page in Chromium
+-----------------------------------------------
+
+Multipage Skia Picture files capture the commands sent to produce PDFs
+and printed documents.
+
+1. Launch Chrome or Chromium with `--no-sandbox --enable-gpu-benchmarking`
+2. Open the JS console (ctrl-shift-J)
+3. Execute: `chrome.gpuBenchmarking.printPagesToSkPictures('/tmp/filename.mskp')`
+ This returns "undefined" on success.
+
+Open the resulting file in the [Skia Debugger](/dev/tools/debugger) or
+process it with `dm`.
+
+<!--?prettify lang=sh?-->
+
+ experimental/tools/mskp_parser.py /tmp/filename.mskp /tmp/filename.mskp.skp
+ ls -l /tmp/filename.mskp.skp
+ # open filename.mskp.skp in the debugger.
+
+ out/Release/dm --src mskp --mskps /tmp/filename.mskp -w /tmp \
+ --config pdf --verbose
+ ls -l /tmp/pdf/mskp/filename.mskp
+
+* * *
+
<span id="hw-acceleration"></span>
How to add hardware acceleration in Skia
« 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