diff options
author | tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-17 00:02:59 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-17 00:02:59 +0000 |
commit | f6de475e5cbd143f348ff7738919e397b7fe7f57 (patch) | |
tree | 8d8a123db2adbd7cbe6b55651b1c9117d6eafdb8 /src/gpu/GrAllocator.h | |
parent | 069975678aaca6dc767e9fef3d743694443223f1 (diff) |
Replace uses of GrAssert by SkASSERT.
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/22850006
git-svn-id: http://skia.googlecode.com/svn/trunk@10789 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrAllocator.h')
-rwxr-xr-x | src/gpu/GrAllocator.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gpu/GrAllocator.h b/src/gpu/GrAllocator.h index dc4c3de281..4b81f25915 100755 --- a/src/gpu/GrAllocator.h +++ b/src/gpu/GrAllocator.h @@ -35,7 +35,7 @@ public: fItemsPerBlock(itemsPerBlock), fOwnFirstBlock(NULL == initialBlock), fCount(0) { - GrAssert(itemsPerBlock > 0); + SkASSERT(itemsPerBlock > 0); fBlockSize = fItemSize * fItemsPerBlock; fBlocks.push_back() = initialBlock; GR_DEBUGCODE(if (!fOwnFirstBlock) {*((char*)initialBlock+fBlockSize-1)='a';} ); @@ -95,7 +95,7 @@ public: * access last item, only call if count() != 0 */ void* back() { - GrAssert(fCount); + SkASSERT(fCount); return (*this)[fCount-1]; } @@ -103,7 +103,7 @@ public: * access last item, only call if count() != 0 */ const void* back() const { - GrAssert(fCount); + SkASSERT(fCount); return (*this)[fCount-1]; } @@ -111,7 +111,7 @@ public: * access item by index. */ void* operator[] (int i) { - GrAssert(i >= 0 && i < fCount); + SkASSERT(i >= 0 && i < fCount); return (char*)fBlocks[i / fItemsPerBlock] + fItemSize * (i % fItemsPerBlock); } @@ -120,7 +120,7 @@ public: * access item by index. */ const void* operator[] (int i) const { - GrAssert(i >= 0 && i < fCount); + SkASSERT(i >= 0 && i < fCount); return (const char*)fBlocks[i / fItemsPerBlock] + fItemSize * (i % fItemsPerBlock); } @@ -162,14 +162,14 @@ public: */ T& push_back() { void* item = fAllocator.push_back(); - GrAssert(NULL != item); + SkASSERT(NULL != item); SkNEW_PLACEMENT(item, T); return *(T*)item; } T& push_back(const T& t) { void* item = fAllocator.push_back(); - GrAssert(NULL != item); + SkASSERT(NULL != item); SkNEW_PLACEMENT_ARGS(item, T, (t)); return *(T*)item; } |