diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-02 21:02:36 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-02 21:02:36 +0000 |
commit | 11b4d8a251f23e399180f60e7b0fc70e68246e03 (patch) | |
tree | 03f4e02865eb936c2858f31cea79fee756bd8cf9 /src | |
parent | daba14b7d4fc96b915c45d82713b22729c0d0f37 (diff) |
add hack for testing gSkSuppressFontCachePurgeSpew
git-svn-id: http://skia.googlecode.com/svn/trunk@2589 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkGlyphCache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkGlyphCache.cpp b/src/core/SkGlyphCache.cpp index faaa2be3ac..6cdc993dd8 100644 --- a/src/core/SkGlyphCache.cpp +++ b/src/core/SkGlyphCache.cpp @@ -16,6 +16,8 @@ //#define USE_CACHE_HASH //#define RECORD_HASH_EFFICIENCY +bool gSkSuppressFontCachePurgeSpew; + /////////////////////////////////////////////////////////////////////////////// #ifdef RECORD_HASH_EFFICIENCY @@ -645,7 +647,7 @@ size_t SkGlyphCache::InternalFreeCache(SkGlyphCache_Globals* globals, globals->validate(); #ifdef SPEW_PURGE_STATUS - if (count) { + if (count && !gSkSuppressFontCachePurgeSpew) { SkDebugf("purging %dK from font cache [%d entries]\n", (int)(bytesFreed >> 10), count); } |