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

Unified Diff: src/pathops/SkIntersections.cpp

Issue 1297013002: remove unused code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix fuzz test failures Created 5 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/pathops/SkIntersections.h ('k') | src/pathops/SkPathOpsConic.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkIntersections.cpp
diff --git a/src/pathops/SkIntersections.cpp b/src/pathops/SkIntersections.cpp
index 7caf04bf4db411c7d1d03df389aecb3cf1a31731..9683796a5b52634e209064981c00580ffbf02e2b 100644
--- a/src/pathops/SkIntersections.cpp
+++ b/src/pathops/SkIntersections.cpp
@@ -87,6 +87,7 @@ int SkIntersections::insert(double one, double two, const SkDPoint& pt) {
fT[0][index] = one;
fT[1][index] = two;
++fUsed;
+ SkASSERT(fUsed <= SK_ARRAY_COUNT(fPt));
return index;
}
« no previous file with comments | « src/pathops/SkIntersections.h ('k') | src/pathops/SkPathOpsConic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698