diff options
author | Jim Van Verth <jvanverth@google.com> | 2018-05-21 10:36:55 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-21 14:57:48 +0000 |
commit | c490b285a69f522e44b6d9933888a7e91acc5e57 (patch) | |
tree | 5b5ee6630f8bafe384a6ac7db8f38155f3ca4316 /src | |
parent | f2e316c7e649ded86217493fa65fb71af850e825 (diff) |
Disable perspective for emoji fallback
Bug: skia:7562
Change-Id: Icc7182c8ae2ec403b2ea2659539d4f9561eddd02
Reviewed-on: https://skia-review.googlesource.com/113200
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/text/GrAtlasTextContext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/text/GrAtlasTextContext.cpp b/src/gpu/text/GrAtlasTextContext.cpp index 8cccdd369c..dfa0da83cd 100644 --- a/src/gpu/text/GrAtlasTextContext.cpp +++ b/src/gpu/text/GrAtlasTextContext.cpp @@ -849,6 +849,11 @@ void GrAtlasTextContext::DfAppendGlyph(GrAtlasTextBlob* blob, int runIndex, void GrAtlasTextContext::FallbackTextHelper::appendText(const SkGlyph& glyph, int count, const char* text, SkPoint glyphPos) { + // can't handle perspective at the moment + if (fViewMatrix.hasPerspective()) { + return; + } + SkScalar maxDim; if (fViewMatrix.isScaleTranslate()) { maxDim = SkTMax(glyph.fWidth, glyph.fHeight)*fTextRatio; |