Index: src/gpu/GrMemoryPool.cpp |
diff --git a/src/gpu/GrMemoryPool.cpp b/src/gpu/GrMemoryPool.cpp |
index cc26452c19cc4c2b92de3f7458478141bca8a71f..1e005857b226a6932199695c6e4548ceadf24db9 100644 |
--- a/src/gpu/GrMemoryPool.cpp |
+++ b/src/gpu/GrMemoryPool.cpp |
@@ -21,7 +21,7 @@ GrMemoryPool::GrMemoryPool(size_t preallocSize, size_t minAllocSize) { |
fMinAllocSize = GrSizeAlignUp(minAllocSize + kPerAllocPad, kAlignment), |
fPreallocSize = GrSizeAlignUp(preallocSize + kPerAllocPad, kAlignment); |
fPreallocSize = SkTMax(fPreallocSize, fMinAllocSize); |
- fSize = fPreallocSize; |
+ fSize = 0; |
fHead = CreateBlock(fPreallocSize); |
fTail = fHead; |
@@ -165,6 +165,6 @@ void GrMemoryPool::validate() { |
} while ((block = block->fNext)); |
SkASSERT(allocCount == fAllocationCnt); |
SkASSERT(prev == fTail); |
- SkASSERT(fAllocBlockCnt != 0 || fSize == fPreallocSize); |
+ SkASSERT(fAllocBlockCnt != 0 || fSize == 0); |
#endif |
} |