Replace uses of GR_DEBUGCODE by SkDEBUGCODE.
BUG=None
TEST=none, no functional changes.
R=bsalomon@google.com, robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://chromiumcodereview.appspot.com/23703010
git-svn-id: http://skia.googlecode.com/svn/trunk@11142 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrAllocPool.cpp b/src/gpu/GrAllocPool.cpp
index 1d8dc45..dc81ee2 100644
--- a/src/gpu/GrAllocPool.cpp
+++ b/src/gpu/GrAllocPool.cpp
@@ -57,7 +57,7 @@
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 @@
block = next;
}
fBlock = NULL;
- GR_DEBUGCODE(fBlocksAllocated = 0;)
+ SkDEBUGCODE(fBlocksAllocated = 0;)
}
void* GrAllocPool::alloc(size_t size) {
@@ -83,7 +83,7 @@
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 @@
Block* next = fBlock->fNext;
GrFree(fBlock);
fBlock = next;
- GR_DEBUGCODE(fBlocksAllocated -= 1;)
+ SkDEBUGCODE(fBlocksAllocated -= 1;)
}
}
}