Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: src/gpu/GrPathRenderer.h

Issue 22850006: Replace uses of GrAssert by SkASSERT. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrPaint.cpp ('k') | src/gpu/GrPathRendererChain.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPathRenderer.h
diff --git a/src/gpu/GrPathRenderer.h b/src/gpu/GrPathRenderer.h
index a64b9e34444b10b23911ceea20607faec2f41dc1..27fbb3d76a1ed3cfe1add21e2a8b0639d3e21f89 100644
--- a/src/gpu/GrPathRenderer.h
+++ b/src/gpu/GrPathRenderer.h
@@ -84,7 +84,7 @@ public:
StencilSupport getStencilSupport(const SkPath& path,
const SkStrokeRec& stroke,
const GrDrawTarget* target) const {
- GrAssert(!path.isInverseFillType());
+ SkASSERT(!path.isInverseFillType());
return this->onGetStencilSupport(path, stroke, target);
}
@@ -117,9 +117,9 @@ public:
const SkStrokeRec& stroke,
GrDrawTarget* target,
bool antiAlias) {
- GrAssert(!path.isEmpty());
- GrAssert(this->canDrawPath(path, stroke, target, antiAlias));
- GrAssert(target->drawState()->getStencil().isDisabled() ||
+ SkASSERT(!path.isEmpty());
+ SkASSERT(this->canDrawPath(path, stroke, target, antiAlias));
+ SkASSERT(target->drawState()->getStencil().isDisabled() ||
kNoRestriction_StencilSupport == this->getStencilSupport(path, stroke, target));
return this->onDrawPath(path, stroke, target, antiAlias);
}
@@ -133,8 +133,8 @@ public:
* @param target target that the path will be rendered to
*/
void stencilPath(const SkPath& path, const SkStrokeRec& stroke, GrDrawTarget* target) {
- GrAssert(!path.isEmpty());
- GrAssert(kNoSupport_StencilSupport != this->getStencilSupport(path, stroke, target));
+ SkASSERT(!path.isEmpty());
+ SkASSERT(kNoSupport_StencilSupport != this->getStencilSupport(path, stroke, target));
this->onStencilPath(path, stroke, target);
}
« no previous file with comments | « src/gpu/GrPaint.cpp ('k') | src/gpu/GrPathRendererChain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698