diff options
author | 2014-06-24 00:12:27 -0700 | |
---|---|---|
committer | 2014-06-24 00:12:27 -0700 | |
commit | c6cb56f36c4aad8ed45486a3bb4de614bb822f1b (patch) | |
tree | d231e40d459dfd1f5545e489fcf004318e82c2e4 /include/core/SkPaint.h | |
parent | 6fc763e3c2b1e539510cb18ece8b97e183099ab1 (diff) |
Implement text rendering with NVPR
Use path rendering to render the text from outlines if supported by the
GPU. Implement this in GrStencilAndCoverTextContext by copying chunks of code
from GrBitmapTextContext.
The drawing is implemented with "instanced" path drawing functions.
Moves the creation of the "main" text context from SkGpuDevice to the
GrContext::createTextContext. This is done because the decision of which text
renderer is optimal can be made only with the internal implementation-specific
information of the context.
Remove a windows assertion from SkScalerContext_GDI::getGDIGlyphPath. The
GetGlyphOutlineW fails in fontmgr_match for the initial space char in the string
" [700] ...". According to MSDN, this is a known problem. Just return that the
glyph has no path data in these cases.
R=jvanverth@google.com, bsalomon@google.com, mtklein@google.com
Author: kkinnunen@nvidia.com
Review URL: https://codereview.chromium.org/196133014
Diffstat (limited to 'include/core/SkPaint.h')
-rw-r--r-- | include/core/SkPaint.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index a73faec42e..e8d85ce122 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -1136,6 +1136,7 @@ private: friend class SkPDFDevice; friend class GrBitmapTextContext; friend class GrDistanceFieldTextContext; + friend class GrStencilAndCoverTextContext; friend class SkTextToPathIter; friend class SkCanonicalizePaint; |