aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-29 20:16:30 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-29 20:16:30 +0000
commit0c3b9cfebaa40bd67d21fd4abd990e478f2006a1 (patch)
tree546f46bbd66813a9c6371c96c8ff4808f52be174 /src
parent7b734e08430f6b1d147dfa9f0c2c08d88aa7b714 (diff)
Use consistent globals in AttachCache.
Diffstat (limited to 'src')
-rw-r--r--src/core/SkGlyphCache.cpp2
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);
}