Index: src/core/SkDraw.cpp |
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp |
index dbdf6f73dab30ae0d788533f4face440a9a21be8..d2bdd81c72cf27f0be48b68ef8da48c806d4a781 100644 |
--- a/src/core/SkDraw.cpp |
+++ b/src/core/SkDraw.cpp |
@@ -1476,12 +1476,14 @@ static void D1G_RectClip(const SkDraw1Glyph& state, Sk48Dot16 fx, Sk48Dot16 fy, |
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); |
mask.fImage = aa; |