| Index: src/gpu/GrTextStrike.cpp
|
| diff --git a/src/gpu/GrTextStrike.cpp b/src/gpu/GrTextStrike.cpp
|
| index 81be3418f7ca1d8c71596bdbfb0afb55f16b602e..edc2ff095a5da862e71051afef9de1f011e20f16 100644
|
| --- a/src/gpu/GrTextStrike.cpp
|
| +++ b/src/gpu/GrTextStrike.cpp
|
| @@ -201,6 +201,7 @@ void GrFontCache::dump() const {
|
| for (int i = 0; i < kAtlasCount; ++i) {
|
| if (fAtlases[i]) {
|
| GrTexture* texture = fAtlases[i]->getTexture();
|
| +#if SK_DEVELOPER
|
| if (texture) {
|
| SkString filename;
|
| #ifdef SK_BUILD_FOR_ANDROID
|
| @@ -208,8 +209,9 @@ void GrFontCache::dump() const {
|
| #else
|
| filename.printf("fontcache_%d%d.png", gDumpCount, i);
|
| #endif
|
| - texture->surfacePriv().savePixels(filename.c_str());
|
| + SkSaveGrSurfacePixelsAsPNG(texture, filename.c_str());
|
| }
|
| +#endif
|
| }
|
| }
|
| ++gDumpCount;
|
|
|