Index: src/gpu/GrBufferAllocPool.cpp |
diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp |
index d19604c718ca7ad86f71c3550122d9bb8781384b..bb73a101eec20837758234f3f97ad1bc36696468 100644 |
--- a/src/gpu/GrBufferAllocPool.cpp |
+++ b/src/gpu/GrBufferAllocPool.cpp |
@@ -281,7 +281,7 @@ void* GrBufferAllocPool::resetCpuData(size_t newSize) { |
sk_free(fCpuData); |
if (newSize) { |
if (fGpu->caps()->mustClearUploadedBufferData()) { |
- fCpuData = sk_calloc(newSize); |
+ fCpuData = sk_calloc_throw(newSize); |
} else { |
fCpuData = sk_malloc_throw(newSize); |
} |