Regularize path cache lookup with Mask and Fallback

Have path use the same scaler flags as BMP because fallback
may use the same cache as the fallback, and fallback should
have the same flags as BMP.

Change-Id: I3721d43324d894ffb9bd02c30e2c10cb323df7e6
Reviewed-on: https://skia-review.googlesource.com/156244
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2018-09-21 13:33:29 -04:00 committed by Skia Commit-Bot
parent 188a627251
commit bac6beda57

View File

@ -455,7 +455,7 @@ void GrTextContext::regenerateGlyphRunList(GrTextBlob* cacheBlob,
{
auto cache = cacheBlob->setupCache(
runIndex, props, flags, distanceFieldPaint, nullptr);
runIndex, props, flags, distanceFieldPaint, &SkMatrix::I());
sk_sp<GrTextStrike> currStrike = glyphCache->getStrike(cache.get());
@ -508,7 +508,7 @@ void GrTextContext::regenerateGlyphRunList(GrTextBlob* cacheBlob,
pathPaint.setPathEffect(nullptr);
auto cache = SkStrikeCache::FindOrCreateStrikeExclusive(
pathPaint, &props, SkScalerContextFlags::kFakeGammaAndBoostContrast, nullptr);
pathPaint, &props, scalerContextFlags, &SkMatrix::I());
auto perPath = [matrixScale, runIndex, cacheBlob, &cache]
(const SkGlyph& glyph, SkPoint position) {