Index: src/core/SkDraw.cpp |
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp |
index f4674b77988355307ca14b519bcbac6e150b12bb..8e1a132b4dfc255c9748101a459d9c3f76c71d63 100644 |
--- a/src/core/SkDraw.cpp |
+++ b/src/core/SkDraw.cpp |
@@ -1476,11 +1476,13 @@ |
bounds = &storage; |
} |
- uint8_t*aa = (uint8_t*)state.fCache->findImage(glyph); |
+ uint8_t* aa = (uint8_t*)glyph.fImage; |
if (nullptr == aa) { |
- return; // can't rasterize glyph |
- } |
- |
+ aa = (uint8_t*)state.fCache->findImage(glyph); |
+ if (nullptr == aa) { |
+ return; // can't rasterize glyph |
+ } |
+ } |
mask.fRowBytes = glyph.rowBytes(); |
mask.fFormat = static_cast<SkMask::Format>(glyph.fMaskFormat); |