Index: src/gpu/GrMemoryPool.cpp |
diff --git a/src/gpu/GrMemoryPool.cpp b/src/gpu/GrMemoryPool.cpp |
index 83b02bd9e58991a2b385387456b21b7f68abdd74..deb7d1a81472dde1c207feb78a131116c02e2809 100644 |
--- a/src/gpu/GrMemoryPool.cpp |
+++ b/src/gpu/GrMemoryPool.cpp |
@@ -104,7 +104,7 @@ void GrMemoryPool::release(void* p) { |
GrMemoryPool::BlockHeader* GrMemoryPool::CreateBlock(size_t size) { |
BlockHeader* block = |
- reinterpret_cast<BlockHeader*>(GrMalloc(size + kHeaderSize)); |
+ reinterpret_cast<BlockHeader*>(sk_malloc_throw(size + kHeaderSize)); |
// we assume malloc gives us aligned memory |
SkASSERT(!(reinterpret_cast<intptr_t>(block) % kAlignment)); |
block->fLiveCount = 0; |
@@ -115,7 +115,7 @@ GrMemoryPool::BlockHeader* GrMemoryPool::CreateBlock(size_t size) { |
} |
void GrMemoryPool::DeleteBlock(BlockHeader* block) { |
- GrFree(block); |
+ sk_free(block); |
} |
void GrMemoryPool::validate() { |