diff options
author | 2016-04-12 06:47:05 -0700 | |
---|---|---|
committer | 2016-04-12 06:47:05 -0700 | |
commit | a9322c2d86aaef1085c267dfc43cf0747f170a86 (patch) | |
tree | 6af9e63ea49c092cb76bd0dfa482a03b82444911 /src/gpu/text/GrStencilAndCoverTextContext.cpp | |
parent | ac8681b0a1f0a5b55df059d75c4112bf411ba8b5 (diff) |
Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.chromium.org/1863013003/ )"
add SK_SUPPORT_NEW_ONCREATESCALERCONTEXT for chrome
this has now landed https://codereview.chromium.org/1878913002/
TBR=
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1880873002
Review URL: https://codereview.chromium.org/1880873002
Diffstat (limited to 'src/gpu/text/GrStencilAndCoverTextContext.cpp')
-rw-r--r-- | src/gpu/text/GrStencilAndCoverTextContext.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/text/GrStencilAndCoverTextContext.cpp b/src/gpu/text/GrStencilAndCoverTextContext.cpp index f0c66979d5..a8dc20215a 100644 --- a/src/gpu/text/GrStencilAndCoverTextContext.cpp +++ b/src/gpu/text/GrStencilAndCoverTextContext.cpp @@ -539,10 +539,13 @@ GrPathRange* GrStencilAndCoverTextContext::TextRun::createGlyphs(GrContext* ctx) ctx->resourceProvider()->findAndRefResourceByUniqueKey(fGlyphPathsKey)); if (nullptr == glyphs) { if (fUsingRawGlyphPaths) { - glyphs = ctx->resourceProvider()->createGlyphs(fFont.getTypeface(), nullptr, fStroke); + SkScalerContextEffects noeffects; + glyphs = ctx->resourceProvider()->createGlyphs(fFont.getTypeface(), noeffects, + nullptr, fStroke); } else { SkGlyphCache* cache = this->getGlyphCache(); glyphs = ctx->resourceProvider()->createGlyphs(cache->getScalerContext()->getTypeface(), + cache->getScalerContext()->getEffects(), &cache->getDescriptor(), fStroke); } |