Index: src/lazy/SkDiscardableMemoryPool.cpp |
diff --git a/src/lazy/SkDiscardableMemoryPool.cpp b/src/lazy/SkDiscardableMemoryPool.cpp |
index 78c48f50c158f25ea90a87300e9c6bddc9816d3d..1f3bcf93e92bc1cfa784a70330c2e6721b87d2bb 100644 |
--- a/src/lazy/SkDiscardableMemoryPool.cpp |
+++ b/src/lazy/SkDiscardableMemoryPool.cpp |
@@ -202,13 +202,6 @@ void DiscardableMemoryPool::free(PoolDiscardableMemory* dm) { |
bool DiscardableMemoryPool::lock(PoolDiscardableMemory* dm) { |
SkASSERT(dm != nullptr); |
- if (nullptr == dm->fPointer) { |
- #if SK_LAZY_CACHE_STATS |
- SkAutoMutexAcquire autoMutexAcquire(fMutex); |
- ++fCacheMisses; |
- #endif // SK_LAZY_CACHE_STATS |
- return false; |
- } |
SkAutoMutexAcquire autoMutexAcquire(fMutex); |
if (nullptr == dm->fPointer) { |
// May have been purged while waiting for lock. |