aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2014-12-01 08:57:33 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-01 08:57:33 -0800
commite05162d15741eb642080a31f28c38a99b3142dfb (patch)
treeb29981383bbb37ce7f0b37a9a285009ad3383467
parent20b373cf3116905fc5ca1928c9b504851335ca43 (diff)
Ignore SkGlyphCache gamma for nvpr text
-rw-r--r--src/gpu/GrStencilAndCoverTextContext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp
index d33bc7a8bf..a8653fe3dc 100644
--- a/src/gpu/GrStencilAndCoverTextContext.cpp
+++ b/src/gpu/GrStencilAndCoverTextContext.cpp
@@ -260,7 +260,8 @@ void GrStencilAndCoverTextContext::init(const GrPaint& paint,
m.postScale(1, -1);
fPaint.localCoordChangeInverse(m);
- fGlyphCache = fSkPaint.detachCache(&fDeviceProperties, &fContextInitialMatrix, false);
+ fGlyphCache = fSkPaint.detachCache(&fDeviceProperties, &fContextInitialMatrix,
+ true /*ignoreGamma*/);
fGlyphs = get_gr_glyphs(fContext, fGlyphCache->getScalerContext()->getTypeface(),
&fGlyphCache->getDescriptor(), fStroke);
} else {
@@ -329,7 +330,7 @@ void GrStencilAndCoverTextContext::init(const GrPaint& paint,
fPaint.localCoordChange(textMatrix);
fContext->concatMatrix(textMatrix);
- fGlyphCache = fSkPaint.detachCache(&fDeviceProperties, NULL, false);
+ fGlyphCache = fSkPaint.detachCache(&fDeviceProperties, NULL, true /*ignoreGamma*/);
fGlyphs = canUseRawPaths ?
get_gr_glyphs(fContext, fSkPaint.getTypeface(), NULL, fStroke) :
get_gr_glyphs(fContext, fGlyphCache->getScalerContext()->getTypeface(),