diff options
author | 2014-09-18 13:51:53 -0700 | |
---|---|---|
committer | 2014-09-18 13:51:53 -0700 | |
commit | 855d83ff79c6c822b2ad653f2f890178ad0f637b (patch) | |
tree | 8b48ca606e25d3a02ce9de8018ae33ad86c58b53 /include/core/SkTypeface.h | |
parent | abfaf63bd0331fb8f20b7ef47b384fcb39418669 (diff) |
Uses a single pre-baked set of paths for drawing nvpr text of a given
typeface. Loads the paths using the driver's glyph loading routines.
Refactors GrPathRange to accept a PathGenerator class that it uses to
lazily initialize its paths. The client code is no longer expected to
initialize the paths in a GrPathRange; instead it must provide a
PathGenerator* instance to createPathRange().
Adds a new createGlyphs() method to GrPathRendering that creates a
range of glyph paths, indexed by glyph id. GrPathRendering implements
createGlyphs() with a PathGenerator that loads glyph paths using the
skia frameworks. GrGLPathRendering uses glMemoryGlyphIndexArrayNV()
instead, when possible, to load the glyph paths.
Removes all GlyphPathRange logic from GrStencilAndCoverTextContext.
It instead uses createGlyphs().
BUG=skia:2939
R=bsalomon@google.com, jvanverth@google.com
Author: cdalton@nvidia.com
Review URL: https://codereview.chromium.org/563283004
Diffstat (limited to 'include/core/SkTypeface.h')
-rw-r--r-- | include/core/SkTypeface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h index cb87a6a6fc..a080d84bd8 100644 --- a/include/core/SkTypeface.h +++ b/include/core/SkTypeface.h @@ -328,6 +328,8 @@ private: friend class SkGTypeface; friend class SkPDFFont; friend class SkPDFCIDFont; + friend class GrPathRendering; + friend class GrGLPathRendering; /** Retrieve detailed typeface metrics. Used by the PDF backend. @param perGlyphInfo Indicate what glyph specific information (advances, |