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

Side by Side Diff: site/user/tips.md

Issue 1910593005: skia.org: Update all fiddles for fiddle 2.0 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « site/user/api/skpaint.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tips & FAQ 1 Tips & FAQ
2 ========== 2 ==========
3 3
4 + [Gyp Options](#gypdefines) 4 + [Gyp Options](#gypdefines)
5 + [Bitmap Subsetting](#bitmap-subsetting) 5 + [Bitmap Subsetting](#bitmap-subsetting)
6 + [Capture a `.skp` file on a web page in Chromium](#skp-capture) 6 + [Capture a `.skp` file on a web page in Chromium](#skp-capture)
7 + [How to add hardware acceleration in Skia](#hw-acceleration) 7 + [How to add hardware acceleration in Skia](#hw-acceleration)
8 + [Does Skia support Font hinting?](#font-hinting) 8 + [Does Skia support Font hinting?](#font-hinting)
9 + [Does Skia shape text (kerning)?](#kerning) 9 + [Does Skia shape text (kerning)?](#kerning)
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 Taking a subset of a bitmap is effectively free - no pixels are copied or 80 Taking a subset of a bitmap is effectively free - no pixels are copied or
81 memory is allocated. This allows Skia to offer an API that typically operates 81 memory is allocated. This allows Skia to offer an API that typically operates
82 on entire bitmaps; clients who want to operate on a subset of a bitmap can use 82 on entire bitmaps; clients who want to operate on a subset of a bitmap can use
83 the following pattern, here being used to magnify a portion of an image with 83 the following pattern, here being used to magnify a portion of an image with
84 drawBitmapNine(): 84 drawBitmapNine():
85 85
86 SkBitmap subset; 86 SkBitmap subset;
87 bitmap.extractSubset(&subset, rect); 87 bitmap.extractSubset(&subset, rect);
88 canvas->drawBitmapNine(subset, ...); 88 canvas->drawBitmapNine(subset, ...);
89 89
90 [An example](https://fiddle.skia.org/c/c91694020f0810994917b56c323e4559) 90 [An example](https://fiddle.skia.org/c/@subset_example)
91
91 92
92 * * * 93 * * *
93 94
94 <span id="skp-capture"></span> 95 <span id="skp-capture"></span>
95 96
96 Capture a `.skp` file on a web page in Chromium 97 Capture a `.skp` file on a web page in Chromium
97 ----------------------------------------------- 98 -----------------------------------------------
98 99
99 1. Launch Chrome or Chromium with `--no-sandbox --enable-gpu-benchmarking` 100 1. Launch Chrome or Chromium with `--no-sandbox --enable-gpu-benchmarking`
100 2. Open the JS console (ctrl-shift-J) 101 2. Open the JS console (ctrl-shift-J)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 Does Skia shape text (kerning)? 161 Does Skia shape text (kerning)?
161 ------------------------------- 162 -------------------------------
162 163
163 No. Skia provides interfaces to draw glyphs, but does not implement a 164 No. Skia provides interfaces to draw glyphs, but does not implement a
164 text shaper. Skia's client's often use 165 text shaper. Skia's client's often use
165 [HarfBuzz](http://www.freedesktop.org/wiki/Software/HarfBuzz/) to 166 [HarfBuzz](http://www.freedesktop.org/wiki/Software/HarfBuzz/) to
166 generate the glyphs and their positions, including kerning. 167 generate the glyphs and their positions, including kerning.
167 168
168 <div style="margin-bottom:99%"></div> 169 <div style="margin-bottom:99%"></div>
OLDNEW
« no previous file with comments | « site/user/api/skpaint.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698