Bug 1334366 - verify that glyph position rect is non-empty in GrAtlasTextBlob::appendGlyph. r=mchang

MozReview-Commit-ID: JcPZSGfitmH
This commit is contained in:
Lee Salzman 2017-01-27 16:14:18 -05:00
parent 0d62f886e9
commit bf02f8d486

View File

@ -75,6 +75,9 @@ void GrAtlasTextBlob::appendGlyph(int runIndex,
GrGlyph* glyph,
SkGlyphCache* cache, const SkGlyph& skGlyph,
SkScalar x, SkScalar y, SkScalar scale, bool applyVM) {
if (positions.isEmpty()) {
return;
}
// If the glyph is too large we fall back to paths
if (glyph->fTooLargeForAtlas) {