Index: src/lazy/SkDiscardableMemoryPool.cpp |
diff --git a/src/lazy/SkDiscardableMemoryPool.cpp b/src/lazy/SkDiscardableMemoryPool.cpp |
index 2be4c755f1e0c3196fbc13a439333c7cdeadd55f..1f3bcf93e92bc1cfa784a70330c2e6721b87d2bb 100644 |
--- a/src/lazy/SkDiscardableMemoryPool.cpp |
+++ b/src/lazy/SkDiscardableMemoryPool.cpp |
@@ -29,7 +29,7 @@ |
/** |
* Without mutex, will be not be thread safe. |
*/ |
- DiscardableMemoryPool(size_t budget, SkMutex* mutex = nullptr); |
+ DiscardableMemoryPool(size_t budget, SkBaseMutex* mutex = nullptr); |
virtual ~DiscardableMemoryPool(); |
SkDiscardableMemory* create(size_t bytes) override; |
@@ -52,9 +52,9 @@ |
#endif // SK_LAZY_CACHE_STATS |
private: |
- SkMutex* fMutex; |
- size_t fBudget; |
- size_t fUsed; |
+ SkBaseMutex* fMutex; |
+ size_t fBudget; |
+ size_t fUsed; |
SkTInternalLList<PoolDiscardableMemory> fList; |
/** Function called to free memory if needed */ |
@@ -128,7 +128,8 @@ |
//////////////////////////////////////////////////////////////////////////////// |
-DiscardableMemoryPool::DiscardableMemoryPool(size_t budget, SkMutex* mutex) |
+DiscardableMemoryPool::DiscardableMemoryPool(size_t budget, |
+ SkBaseMutex* mutex) |
: fMutex(mutex) |
, fBudget(budget) |
, fUsed(0) { |
@@ -240,7 +241,7 @@ |
} // namespace |
-SkDiscardableMemoryPool* SkDiscardableMemoryPool::Create(size_t size, SkMutex* mutex) { |
+SkDiscardableMemoryPool* SkDiscardableMemoryPool::Create(size_t size, SkBaseMutex* mutex) { |
return new DiscardableMemoryPool(size, mutex); |
} |