aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/gpu/text/GrAtlasTextBlob.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/text/GrAtlasTextBlob.cpp b/src/gpu/text/GrAtlasTextBlob.cpp
index 321c4a6750..601eb372ea 100644
--- a/src/gpu/text/GrAtlasTextBlob.cpp
+++ b/src/gpu/text/GrAtlasTextBlob.cpp
@@ -74,6 +74,9 @@ void GrAtlasTextBlob::appendGlyph(int runIndex,
GrGlyph* glyph,
SkGlyphCache* cache, const SkGlyph& skGlyph,
SkScalar x, SkScalar y, SkScalar scale, bool treatAsBMP) {
+ if (positions.isEmpty()) {
+ return;
+ }
// If the glyph is too large we fall back to paths
if (glyph->fTooLargeForAtlas) {