| Index: src/gpu/GrAtlasTextContext.cpp
|
| diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
|
| index d6bb3e079712ecb27c9996786cf741e228a197dc..8c89f2b53ef5d3f6d46fcae60051da768b2ddf91 100644
|
| --- a/src/gpu/GrAtlasTextContext.cpp
|
| +++ b/src/gpu/GrAtlasTextContext.cpp
|
| @@ -701,13 +701,19 @@ public:
|
| return;
|
| }
|
|
|
| + GrTexture* texture = fFontCache->getTexture(fMaskFormat);
|
| + if (!texture) {
|
| + SkDebugf("Could not allocate backing texture for atlas\n");
|
| + return;
|
| + }
|
| +
|
| GrTextureParams params(SkShader::kClamp_TileMode, GrTextureParams::kNone_FilterMode);
|
|
|
| // This will be ignored in the non A8 case
|
| bool opaqueVertexColors = GrColorIsOpaque(this->color());
|
| SkAutoTUnref<const GrGeometryProcessor> gp(
|
| GrBitmapTextGeoProc::Create(this->color(),
|
| - fFontCache->getTexture(fMaskFormat),
|
| + texture,
|
| params,
|
| fMaskFormat,
|
| opaqueVertexColors,
|
|
|