| Index: src/gpu/gl/GrGLPathRendering.cpp
|
| diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp
|
| index ae833957405a3dbbd868f0a2d5ab0ad19b49f1ba..e81d54c338250fa16a4331d4a90055bfbfd723ea 100644
|
| --- a/src/gpu/gl/GrGLPathRendering.cpp
|
| +++ b/src/gpu/gl/GrGLPathRendering.cpp
|
| @@ -113,7 +113,11 @@ GrPathRange* GrGLPathRendering::createGlyphs(const SkTypeface* typeface,
|
| }
|
|
|
| int faceIndex;
|
| - SkAutoTDelete<SkStream> fontStream(typeface->openStream(&faceIndex));
|
| + SkStreamAsset* asset = typeface->openStream(&faceIndex);
|
| + if (!asset) {
|
| + return GrPathRendering::createGlyphs(typeface, NULL, stroke);
|
| + }
|
| + SkAutoTDelete<SkStream> fontStream(asset);
|
|
|
| const size_t fontDataLength = fontStream->getLength();
|
| if (0 == fontDataLength) {
|
|
|