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/src/gpu/GrStencilAndCoverPathRenderer.cpp b/src/gpu/GrStencilAndCoverPathRenderer.cpp
index e8bc522..f7330a8 100644
--- a/src/gpu/GrStencilAndCoverPathRenderer.cpp
+++ b/src/gpu/GrStencilAndCoverPathRenderer.cpp
@@ -15,8 +15,8 @@
#include "SkStrokeRec.h"
GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrContext* context) {
- GrAssert(NULL != context);
- GrAssert(NULL != context->getGpu());
+ SkASSERT(NULL != context);
+ SkASSERT(NULL != context->getGpu());
if (context->getGpu()->caps()->pathStencilingSupport()) {
return SkNEW_ARGS(GrStencilAndCoverPathRenderer, (context->getGpu()));
} else {
@@ -25,7 +25,7 @@
}
GrStencilAndCoverPathRenderer::GrStencilAndCoverPathRenderer(GrGpu* gpu) {
- GrAssert(gpu->caps()->pathStencilingSupport());
+ SkASSERT(gpu->caps()->pathStencilingSupport());
fGpu = gpu;
gpu->ref();
}
@@ -53,7 +53,7 @@
void GrStencilAndCoverPathRenderer::onStencilPath(const SkPath& path,
const SkStrokeRec& stroke,
GrDrawTarget* target) {
- GrAssert(!path.isInverseFillType());
+ SkASSERT(!path.isInverseFillType());
SkAutoTUnref<GrPath> p(fGpu->createPath(path));
target->stencilPath(p, stroke, path.getFillType());
}
@@ -62,11 +62,11 @@
const SkStrokeRec& stroke,
GrDrawTarget* target,
bool antiAlias) {
- GrAssert(!antiAlias);
- GrAssert(!stroke.isHairlineStyle());
+ SkASSERT(!antiAlias);
+ SkASSERT(!stroke.isHairlineStyle());
GrDrawState* drawState = target->drawState();
- GrAssert(drawState->getStencil().isDisabled());
+ SkASSERT(drawState->getStencil().isDisabled());
SkAutoTUnref<GrPath> p(fGpu->createPath(path));