Index: src/gpu/GrAllocPool.cpp |
diff --git a/src/gpu/GrAllocPool.cpp b/src/gpu/GrAllocPool.cpp |
index 1d8dc45b974a17b9dd62825fd9f2b993b0c551cb..dc81ee2d47b9d792a3a9cfa06e28dfa1cde0ec0e 100644 |
--- a/src/gpu/GrAllocPool.cpp |
+++ b/src/gpu/GrAllocPool.cpp |
@@ -57,7 +57,7 @@ struct GrAllocPool::Block { |
GrAllocPool::GrAllocPool(size_t blockSize) { |
fBlock = NULL; |
fMinBlockSize = GrMax(blockSize, GrAllocPool_MIN_BLOCK_SIZE); |
- GR_DEBUGCODE(fBlocksAllocated = 0;) |
+ SkDEBUGCODE(fBlocksAllocated = 0;) |
} |
GrAllocPool::~GrAllocPool() { |
@@ -74,7 +74,7 @@ void GrAllocPool::reset() { |
block = next; |
} |
fBlock = NULL; |
- GR_DEBUGCODE(fBlocksAllocated = 0;) |
+ SkDEBUGCODE(fBlocksAllocated = 0;) |
} |
void* GrAllocPool::alloc(size_t size) { |
@@ -83,7 +83,7 @@ void* GrAllocPool::alloc(size_t size) { |
if (!fBlock || !fBlock->canAlloc(size)) { |
size_t blockSize = GrMax(fMinBlockSize, size); |
fBlock = Block::Create(blockSize, fBlock); |
- GR_DEBUGCODE(fBlocksAllocated += 1;) |
+ SkDEBUGCODE(fBlocksAllocated += 1;) |
} |
return fBlock->alloc(size); |
} |
@@ -97,7 +97,7 @@ void GrAllocPool::release(size_t bytes) { |
Block* next = fBlock->fNext; |
GrFree(fBlock); |
fBlock = next; |
- GR_DEBUGCODE(fBlocksAllocated -= 1;) |
+ SkDEBUGCODE(fBlocksAllocated -= 1;) |
} |
} |
} |