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
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 13df5ce..759c7e4 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -678,7 +678,7 @@
* Initializes by pre-concat'ing the context's current matrix with the preConcat param.
*/
void setPreConcat(GrContext* context, const SkMatrix& preConcat, GrPaint* paint = NULL) {
- GrAssert(NULL != context);
+ SkASSERT(NULL != context);
this->restore();
@@ -692,7 +692,7 @@
* update a paint but the matrix cannot be inverted.
*/
bool setIdentity(GrContext* context, GrPaint* paint = NULL) {
- GrAssert(NULL != context);
+ SkASSERT(NULL != context);
this->restore();
@@ -772,7 +772,7 @@
AutoClip(GrContext* context, InitialClip initialState)
: fContext(context) {
- GrAssert(kWideOpen_InitialClip == initialState);
+ SkASSERT(kWideOpen_InitialClip == initialState);
fNewClipData.fClipStack = &fNewClipStack;
fOldClip = context->getClip();
@@ -808,7 +808,7 @@
, fAutoRT(ctx, rt) {
fAutoMatrix.setIdentity(ctx);
// should never fail with no paint param.
- GrAssert(fAutoMatrix.succeeded());
+ SkASSERT(fAutoMatrix.succeeded());
}
private:
@@ -987,10 +987,10 @@
// The cache also has a ref which we are lending to the caller of detach(). When the caller
// lets go of the ref and the ref count goes to 0 internal_dispose will see this flag is
// set and re-ref the texture, thereby restoring the cache's ref.
- GrAssert(texture->getRefCnt() > 1);
+ SkASSERT(texture->getRefCnt() > 1);
texture->setFlag((GrTextureFlags) GrTexture::kReturnToCache_FlagBit);
texture->unref();
- GrAssert(NULL != texture->getCacheEntry());
+ SkASSERT(NULL != texture->getCacheEntry());
return texture;
}