diff options
-rw-r--r-- | include/config/SkUserConfig.h | 1 | ||||
-rw-r--r-- | src/core/SkGlyphCache.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/config/SkUserConfig.h b/include/config/SkUserConfig.h index 430b4dd5fe..2b1be9f49d 100644 --- a/include/config/SkUserConfig.h +++ b/include/config/SkUserConfig.h @@ -71,6 +71,7 @@ the performance impact. By default these flags are undefined, but can be enabled by uncommenting them below. */ +//#define SK_DEBUG_GLYPH_CACHE //#define SK_DEBUG_PATH /* To assist debugging, Skia provides an instance counting utility in diff --git a/src/core/SkGlyphCache.cpp b/src/core/SkGlyphCache.cpp index ae213e94b5..b878df8b77 100644 --- a/src/core/SkGlyphCache.cpp +++ b/src/core/SkGlyphCache.cpp @@ -693,6 +693,7 @@ size_t SkGlyphCache::InternalFreeCache(SkGlyphCache_Globals* globals, #ifdef SK_DEBUG void SkGlyphCache::validate() const { +#ifdef SK_DEBUG_GLYPH_CACHE int count = fGlyphArray.count(); for (int i = 0; i < count; i++) { const SkGlyph* glyph = fGlyphArray[i]; @@ -702,6 +703,7 @@ void SkGlyphCache::validate() const { SkASSERT(fImageAlloc.contains(glyph->fImage)); } } +#endif } #endif |