diff options
author | 2013-09-26 19:56:51 +0000 | |
---|---|---|
committer | 2013-09-26 19:56:51 +0000 | |
commit | 939ca7ce860c5e80a4fdccc0dba5f7bfa29fef22 (patch) | |
tree | 58e1f8a0928368c9e97ef402f7c8a65dd69447f8 /src/gpu/GrGpu.cpp | |
parent | baed71fbfeee030184af74eb7e8622e99952bbf8 (diff) |
move GrMalloc, GrFree, Gr_bzero to their sk equivalents
BUG=
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/23566022
git-svn-id: http://skia.googlecode.com/svn/trunk@11486 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index a4aa00eac1..910c57146b 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -276,14 +276,14 @@ const GrIndexBuffer* GrGpu::getQuadIndexBuffer() const { fill_indices(indices, MAX_QUADS); fQuadIndexBuffer->unlock(); } else { - indices = (uint16_t*)GrMalloc(SIZE); + indices = (uint16_t*)sk_malloc_throw(SIZE); fill_indices(indices, MAX_QUADS); if (!fQuadIndexBuffer->updateData(indices, SIZE)) { fQuadIndexBuffer->unref(); fQuadIndexBuffer = NULL; GrCrash("Can't get indices into buffer!"); } - GrFree(indices); + sk_free(indices); } } } |