Index: src/gpu/GrBatchFontCache.cpp |
diff --git a/src/gpu/GrBatchFontCache.cpp b/src/gpu/GrBatchFontCache.cpp |
index d6ffc507e74560957e09b7b33c152223393a6c0d..64d6bb1a1c8cf069bd4bfff79c6232dd8c09316e 100644 |
--- a/src/gpu/GrBatchFontCache.cpp |
+++ b/src/gpu/GrBatchFontCache.cpp |
@@ -226,6 +226,7 @@ bool GrBatchTextStrike::addGlyphToAtlas(GrBatchTarget* batchTarget, GrGlyph* gly |
glyph->width(), glyph->height(), |
storage.get(), &glyph->fAtlasLocation); |
if (success) { |
+ SkASSERT(GrBatchAtlas::kInvalidAtlasID != glyph->fID); |
fAtlasedGlyphs++; |
} |
return success; |