mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Bug 1334366 - verify that glyph position rect is non-empty in GrAtlasTextBlob::appendGlyph. r=mchang
MozReview-Commit-ID: JcPZSGfitmH
This commit is contained in:
parent
0d62f886e9
commit
bf02f8d486
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user