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

Unified Diff: experimental/StrokePathRenderer/GrStrokePathRenderer.cpp

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 | « experimental/AndroidPathRenderer/GrAndroidPathRenderer.cpp ('k') | include/gpu/GrBackendEffectFactory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/StrokePathRenderer/GrStrokePathRenderer.cpp
diff --git a/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp b/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp
index a8ae91727a38584663a32742023bdab7f35ad3aa..0b0ea60afabb18a7e074facc93a15fd8b22b5b61 100644
--- a/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp
+++ b/experimental/StrokePathRenderer/GrStrokePathRenderer.cpp
@@ -266,10 +266,10 @@ bool GrStrokePathRenderer::onDrawPath(const SkPath& origPath,
break;
case SkPath::kQuad_Verb:
case SkPath::kCubic_Verb:
- GrAssert(!"Curves not supported!");
+ SkASSERT(!"Curves not supported!");
default:
// Unhandled cases
- GrAssert(false);
+ SkASSERT(false);
}
}
@@ -283,14 +283,14 @@ bool GrStrokePathRenderer::onDrawPath(const SkPath& origPath,
lastPt [1] += dir;
break;
case SkPaint::kRound_Cap:
- GrAssert(!"Round caps not supported!");
+ SkASSERT(!"Round caps not supported!");
default: // No cap
break;
}
}
- GrAssert(vCount <= maxVertexCount);
- GrAssert(iCount <= maxIndexCount);
+ SkASSERT(vCount <= maxVertexCount);
+ SkASSERT(iCount <= maxIndexCount);
if (vCount > 0) {
target->drawIndexed(kTriangles_GrPrimitiveType,
« no previous file with comments | « experimental/AndroidPathRenderer/GrAndroidPathRenderer.cpp ('k') | include/gpu/GrBackendEffectFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698