void GrFontCache::dump() const { static int gDumpCount = 0; for (int i = 0; i < kAtlasCount; ++i) { if (fAtlases[i]) { GrTexture* texture = fAtlases[i]->getTexture(); if (texture) { SkString filename; #ifdef SK_BUILD_FOR_ANDROID filename.printf("/sdcard/fontcache_%d%d.png", gDumpCount, i); #else filename.printf("fontcache_%d%d.png", gDumpCount, i); #endif texture->savePixels(filename.c_str()); } } } ++gDumpCount; }