| Index: src/gpu/text/GrAtlasTextContext.cpp
|
| diff --git a/src/gpu/text/GrAtlasTextContext.cpp b/src/gpu/text/GrAtlasTextContext.cpp
|
| index eef4f0bff62e4e5e7d1fdacbc71ef14cee3aa838..91fa658110eb8fdc38acd09e704caf432606f0a8 100644
|
| --- a/src/gpu/text/GrAtlasTextContext.cpp
|
| +++ b/src/gpu/text/GrAtlasTextContext.cpp
|
| @@ -156,20 +156,18 @@ void GrAtlasTextContext::drawTextBlob(GrDrawContext* dc,
|
| blob, x, y, drawFilter);
|
| } else {
|
| fCache->makeMRU(cacheBlob);
|
| -#ifdef CACHE_SANITY_CHECK
|
| - {
|
| +
|
| + if (CACHE_SANITY_CHECK) {
|
| int glyphCount = 0;
|
| int runCount = 0;
|
| GrTextBlobCache::BlobGlyphCount(&glyphCount, &runCount, blob);
|
| - SkAutoTUnref<GrAtlasTextBlob> sanityBlob(fCache->createBlob(glyphCount, runCount,
|
| - kGrayTextVASize));
|
| + SkAutoTUnref<GrAtlasTextBlob> sanityBlob(
|
| + fCache->createBlob(glyphCount, runCount, GrAtlasTextBlob::kGrayTextVASize));
|
| GrTextBlobCache::SetupCacheBlobKey(sanityBlob, key, blurRec, skPaint);
|
| this->regenerateTextBlob(sanityBlob, skPaint, grPaint.getColor(), viewMatrix,
|
| blob, x, y, drawFilter);
|
| GrAtlasTextBlob::AssertEqual(*sanityBlob, *cacheBlob);
|
| }
|
| -
|
| -#endif
|
| }
|
| } else {
|
| if (canCache) {
|
|
|