Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: src/gpu/GrStencilAndCoverTextContext.cpp

Issue 740343006: Ignore SkGlyphCache gamma for nvpr text (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reabse Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrStencilAndCoverTextContext.cpp
diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp
index d33bc7a8bfd3395f565af138687e620749a90de5..a8653fe3dc54fc4fecdd330f66840c05df900b57 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(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698