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

Unified Diff: site/user/tips.md

Issue 835083003: First set of minimal docs for the new Markdown server. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix skia doc links Created 5 years, 11 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 | « site/user/issue-tracker.md ('k') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..e76990b783b67bb430ff79e21cc6cf8f18fab94c
--- /dev/null
+++ b/site/user/tips.md
@@ -0,0 +1,48 @@
+Tips & FAQ
+==========
+
+Tips and Tricks
+---------------
+
+### Bitmap Subsetting
+
+Taking a subset of a bitmap is effectively free - no pixels are copied or
+memory is allocated. This allows Skia to offer an API that typically operates
+on entire bitmaps; clients who want to operate on a subset of a bitmap can use
+the following pattern, here being used to magnify a portion of an image with
+drawBitmapNine():
+
+ SkBitmap subset;
+ bitmap.extractSubset(&subset, rect);
+ canvas->drawBitmapNine(subset, ...);
+
+FAQ
+---
+
+### Does Skia support HW acceleration?
+
+
+There are two ways Skia can take advantage of HW.
+
+1. Subclass SkCanvas
+
+Since all drawing calls go through SkCanvas, those calls can be redirected to
+a different graphics API. SkGLCanvas has been written to direct its drawing
+calls to OpenGL. See src/gl/
+
+2. Custom bottleneck routines
+
+There are sets of bottleneck routines inside the blits of Skia that can be
+replace on a platform in order to take advantage of specific CPU features. One
+such example is the NEON SIMD instructions on ARM v7 devices. See src/opts/
+
+### Does Skia support Font hinting?
+
+Skia has a built-in font cache, but it does not know how to actual render font
+files like TrueType? into its cache. For that it relies on the platform to
+supply an instance of SkScalerContext?. This is Skia's abstract interface for
+communicating with a font scaler engine. In src/ports you can see support
+files for FreeType?, Mac OS X, and Windows GDI font engines. Other font
+engines can easily be supported in a like manner.
+
+
« no previous file with comments | « site/user/issue-tracker.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698