Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: src/gpu/GrAllocPool.cpp

Issue 22850006: Replace uses of GrAssert by SkASSERT. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrAllocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698