aboutsummaryrefslogtreecommitdiff
path: root/gyp
diff options
context:
space:
mode:
authorcdalton <cdalton@nvidia.com>2014-09-18 13:51:53 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-18 13:51:53 -0700
commit855d83ff79c6c822b2ad653f2f890178ad0f637b (patch)
tree8b48ca606e25d3a02ce9de8018ae33ad86c58b53 /gyp
parentabfaf63bd0331fb8f20b7ef47b384fcb39418669 (diff)
downloadskia-855d83ff79c6c822b2ad653f2f890178ad0f637b.tar.gz
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 'gyp')
-rw-r--r--gyp/gpu.gypi2
1 files changed, 2 insertions, 0 deletions
diff --git a/gyp/gpu.gypi b/gyp/gpu.gypi
index 03bf48ffa..1de2ab406 100644
--- a/gyp/gpu.gypi
+++ b/gyp/gpu.gypi
@@ -103,10 +103,12 @@
'<(skia_src_path)/gpu/GrPaint.cpp',
'<(skia_src_path)/gpu/GrPath.cpp',
'<(skia_src_path)/gpu/GrPath.h',
+ '<(skia_src_path)/gpu/GrPathRange.cpp',
'<(skia_src_path)/gpu/GrPathRange.h',
'<(skia_src_path)/gpu/GrPathRendererChain.cpp',
'<(skia_src_path)/gpu/GrPathRenderer.cpp',
'<(skia_src_path)/gpu/GrPathRenderer.h',
+ '<(skia_src_path)/gpu/GrPathRendering.cpp',
'<(skia_src_path)/gpu/GrPathRendering.h',
'<(skia_src_path)/gpu/GrPathUtils.cpp',
'<(skia_src_path)/gpu/GrPathUtils.h',