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/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp
index f819088..f30f105 100644
--- a/src/pipe/SkGPipeRead.cpp
+++ b/src/pipe/SkGPipeRead.cpp
@@ -49,7 +49,7 @@
paint->setXfermode((SkXfermode*)obj);
break;
default:
- SkASSERT(!"never gets here");
+ SkDEBUGFAIL("never gets here");
}
}
@@ -403,7 +403,7 @@
}
case kTypeface_PaintOp: state->setTypeface(p, data); break;
- default: SkASSERT(!"bad paintop"); return;
+ default: SkDEBUGFAIL("bad paintop"); return;
}
SkASSERT(reader->offset() <= stop);
} while (reader->offset() < stop);