Index: src/gpu/GrAllocPool.cpp |
diff --git a/src/gpu/GrAllocPool.cpp b/src/gpu/GrAllocPool.cpp |
index 971f8ee1161cc2d290f6ac227971739006feb37b..e8381b034a6d2275334d15947a74a4bfdd596976 100644 |
--- a/src/gpu/GrAllocPool.cpp |
+++ b/src/gpu/GrAllocPool.cpp |
@@ -19,7 +19,7 @@ struct GrAllocPool::Block { |
size_t fBytesTotal; |
static Block* Create(size_t size, Block* next) { |
- GrAssert(size >= GrAllocPool_MIN_BLOCK_SIZE); |
+ SkASSERT(size >= GrAllocPool_MIN_BLOCK_SIZE); |
Block* block = (Block*)GrMalloc(sizeof(Block) + size); |
block->fNext = next; |
@@ -34,7 +34,7 @@ struct GrAllocPool::Block { |
} |
void* alloc(size_t bytes) { |
- GrAssert(bytes <= fBytesFree); |
+ SkASSERT(bytes <= fBytesFree); |
fBytesFree -= bytes; |
void* ptr = fPtr; |
fPtr += bytes; |
@@ -42,7 +42,7 @@ struct GrAllocPool::Block { |
} |
size_t release(size_t bytes) { |
- GrAssert(bytes > 0); |
+ SkASSERT(bytes > 0); |
size_t free = GrMin(bytes, fBytesTotal - fBytesFree); |
fBytesFree += free; |
fPtr -= free; |
@@ -112,7 +112,7 @@ void GrAllocPool::validate() const { |
count += 1; |
block = block->fNext; |
} |
- GrAssert(fBlocksAllocated == count); |
+ SkASSERT(fBlocksAllocated == count); |
} |
#endif |