| Index: src/gpu/text/GrTextBlobCache.cpp
|
| diff --git a/src/gpu/text/GrTextBlobCache.cpp b/src/gpu/text/GrTextBlobCache.cpp
|
| index 685284bee5c02fd062bb84ab29b4ed85feabf8b9..7fa2d1a80a14b3721e20bb6c82e29c311b86d0eb 100644
|
| --- a/src/gpu/text/GrTextBlobCache.cpp
|
| +++ b/src/gpu/text/GrTextBlobCache.cpp
|
| @@ -23,14 +23,12 @@ GrAtlasTextBlob* GrTextBlobCache::createBlob(int glyphCount, int runCount, size_
|
| sizeof(GrAtlasTextBlob::Run) * runCount;
|
|
|
| void* allocation = fPool.allocate(size);
|
| -#ifdef CACHE_SANITY_CHECK
|
| - sk_bzero(allocation, size);
|
| -#endif
|
| + if (CACHE_SANITY_CHECK) {
|
| + sk_bzero(allocation, size);
|
| + }
|
|
|
| GrAtlasTextBlob* cacheBlob = new (allocation) GrAtlasTextBlob;
|
| -#ifdef CACHE_SANITY_CHECK
|
| cacheBlob->fSize = size;
|
| -#endif
|
|
|
| // setup offsets for vertices / glyphs
|
| cacheBlob->fVertices = sizeof(GrAtlasTextBlob) + reinterpret_cast<unsigned char*>(cacheBlob);
|
|
|