Add SkDEBUGFAIL to clean up use of SkASSERT(!"text");
catch a couple of latent SkASSERT("text") bugs.
http://codereview.appspot.com/5504090/
git-svn-id: http://skia.googlecode.com/svn/trunk@2926 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/effects/SkTransparentShader.cpp b/src/effects/SkTransparentShader.cpp
index 58d7e44..486fc89 100644
--- a/src/effects/SkTransparentShader.cpp
+++ b/src/effects/SkTransparentShader.cpp
@@ -94,7 +94,7 @@
break;
}
case SkBitmap::kIndex8_Config:
- SkASSERT(!"index8 not supported as a destination device");
+ SkDEBUGFAIL("index8 not supported as a destination device");
break;
case SkBitmap::kA8_Config: {
const uint8_t* src = fDevice->getAddr8(x, y);
@@ -110,7 +110,7 @@
break;
}
case SkBitmap::kA1_Config:
- SkASSERT(!"kA1_Config umimplemented at this time");
+ SkDEBUGFAIL("kA1_Config umimplemented at this time");
break;
default: // to avoid warnings
break;