aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencilAndCoverTextContext.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2014-12-10 13:48:57 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-10 13:48:57 -0800
commitc6bc58eded89b0c0a36b8e20e193c200f297a0da (patch)
tree3de559baf8eecee6f6576c9b6deee39fb8258775 /src/gpu/GrStencilAndCoverTextContext.cpp
parent04b49c31789201fbef969f5598a286187920dd56 (diff)
Remove GP from drawstate, revision of invariant output for GP
Diffstat (limited to 'src/gpu/GrStencilAndCoverTextContext.cpp')
-rw-r--r--src/gpu/GrStencilAndCoverTextContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp
index bf1e58dae8..42f74ea0f5 100644
--- a/src/gpu/GrStencilAndCoverTextContext.cpp
+++ b/src/gpu/GrStencilAndCoverTextContext.cpp
@@ -399,7 +399,8 @@ static const SkScalar* get_xy_scalar_array(const SkPoint* pointArray) {
void GrStencilAndCoverTextContext::flush() {
if (fQueuedGlyphCount > 0) {
- fDrawTarget->drawPaths(&fDrawState, fPaint.getColor(), fGlyphs,
+ SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(fPaint.getColor()));
+ fDrawTarget->drawPaths(&fDrawState, pp, fGlyphs,
fGlyphIndices, GrPathRange::kU16_PathIndexType,
get_xy_scalar_array(fGlyphPositions),
GrPathRendering::kTranslate_PathTransformType,