Index: src/core/SkGlyphCache.cpp |
diff --git a/src/core/SkGlyphCache.cpp b/src/core/SkGlyphCache.cpp |
index a78b197a552591949be8d6662a4005fd94c141ec..2b1b62b839641d2825795ff42472ffe8519c030c 100644 |
--- a/src/core/SkGlyphCache.cpp |
+++ b/src/core/SkGlyphCache.cpp |
@@ -560,10 +560,10 @@ size_t SkGlyphCache_Globals::internalPurge(size_t minBytesNeeded) { |
if (fTotalMemoryUsed > fCacheSizeLimit) { |
bytesNeeded = fTotalMemoryUsed - fCacheSizeLimit; |
} |
- bytesNeeded = SkMax32(bytesNeeded, minBytesNeeded); |
+ bytesNeeded = SkTMax(bytesNeeded, minBytesNeeded); |
if (bytesNeeded) { |
// no small purges! |
- bytesNeeded = SkMax32(bytesNeeded, fTotalMemoryUsed >> 2); |
+ bytesNeeded = SkTMax(bytesNeeded, fTotalMemoryUsed >> 2); |
} |
int countNeeded = 0; |