зеркало из https://github.com/mozilla/moz-skia.git
add hack for testing gSkSuppressFontCachePurgeSpew
git-svn-id: http://skia.googlecode.com/svn/trunk@2589 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
daba14b7d4
Коммит
11b4d8a251
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче