summaryrefslogtreecommitdiff
path: root/gpu/GrStencilAndCoverPathRenderer.cpp
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-17 00:02:59 +0000
committertfarina@chromium.org <tfarina@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-17 00:02:59 +0000
commita91959e0e4997d3a73b38e6d7f0296c566a4b1d0 (patch)
tree0c8c5cb65232a886b7b4143cd7aceffb6cfc40ef /gpu/GrStencilAndCoverPathRenderer.cpp
parent2ce5cc339ef2dc5eadf63f06afcd183fa21f31fa (diff)
downloadsrc-a91959e0e4997d3a73b38e6d7f0296c566a4b1d0.tar.gz
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/src@10789 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/GrStencilAndCoverPathRenderer.cpp')
-rw-r--r--gpu/GrStencilAndCoverPathRenderer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/gpu/GrStencilAndCoverPathRenderer.cpp b/gpu/GrStencilAndCoverPathRenderer.cpp
index e8bc5228..f7330a81 100644
--- a/gpu/GrStencilAndCoverPathRenderer.cpp
+++ b/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 @@ GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrContext* context) {
}
GrStencilAndCoverPathRenderer::GrStencilAndCoverPathRenderer(GrGpu* gpu) {
- GrAssert(gpu->caps()->pathStencilingSupport());
+ SkASSERT(gpu->caps()->pathStencilingSupport());
fGpu = gpu;
gpu->ref();
}
@@ -53,7 +53,7 @@ GrPathRenderer::StencilSupport GrStencilAndCoverPathRenderer::onGetStencilSuppor
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 @@ bool GrStencilAndCoverPathRenderer::onDrawPath(const SkPath& path,
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));