diff --git a/src/lazy/SkLruImageCache.cpp b/src/lazy/SkLruImageCache.cpp index 0f047161ba..62e2953596 100644 --- a/src/lazy/SkLruImageCache.cpp +++ b/src/lazy/SkLruImageCache.cpp @@ -62,13 +62,13 @@ SkLruImageCache::~SkLruImageCache() { while (pixels != NULL) { CachedPixels* prev = iter.prev(); SkASSERT(!pixels->isLocked()); -#if SK_DEBUG +#ifdef SK_DEBUG fRamUsed -= pixels->getLength(); #endif SkDELETE(pixels); pixels = prev; } -#if SK_DEBUG +#ifdef SK_DEBUG SkASSERT(fRamUsed == 0); #endif }