diff options
author | 2012-10-29 20:16:30 +0000 | |
---|---|---|
committer | 2012-10-29 20:16:30 +0000 | |
commit | 0c3b9cfebaa40bd67d21fd4abd990e478f2006a1 (patch) | |
tree | 546f46bbd66813a9c6371c96c8ff4808f52be174 /src | |
parent | 7b734e08430f6b1d147dfa9f0c2c08d88aa7b714 (diff) |
Use consistent globals in AttachCache.
https://codereview.appspot.com/6816052/
git-svn-id: http://skia.googlecode.com/svn/trunk@6188 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkGlyphCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkGlyphCache.cpp b/src/core/SkGlyphCache.cpp index 5904edd3c0..ae213e94b5 100644 --- a/src/core/SkGlyphCache.cpp +++ b/src/core/SkGlyphCache.cpp @@ -599,7 +599,7 @@ void SkGlyphCache::AttachCache(SkGlyphCache* cache) { // if we have a fixed budget for our cache, do a purge here { size_t allocated = globals.fTotalMemoryUsed + cache->fMemoryUsed; - size_t budgeted = SkGraphics::GetFontCacheLimit(); + size_t budgeted = globals.getFontCacheLimit(); if (allocated > budgeted) { (void)InternalFreeCache(&globals, allocated - budgeted); } |