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

Unified Diff: src/pathops/SkOpContour.h

Issue 16951017: convert pathops to use SkSTArray where possible. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: pathops use SkTArray Created 7 years, 6 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/SkOpAngle.h ('k') | src/pathops/SkOpContour.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkOpContour.h
diff --git a/src/pathops/SkOpContour.h b/src/pathops/SkOpContour.h
index c57fbac6cae9bb2511ba5e1aa485658c51120917..84f0eb10dd6331c7ef7645e3b6006b2714d8791b 100644
--- a/src/pathops/SkOpContour.h
+++ b/src/pathops/SkOpContour.h
@@ -46,7 +46,7 @@ public:
SkASSERT(fCrosses[index] != crosser);
}
#endif
- *fCrosses.append() = crosser;
+ fCrosses.push_back(crosser);
}
void addCubic(const SkPoint pts[4]) {
@@ -214,17 +214,17 @@ public:
#if DEBUG_SHOW_WINDING
int debugShowWindingValues(int totalSegments, int ofInterest);
- static void debugShowWindingValues(const SkTDArray<SkOpContour*>& contourList);
+ static void debugShowWindingValues(const SkTArray<SkOpContour*, true>& contourList);
#endif
private:
void setBounds();
SkTArray<SkOpSegment> fSegments;
- SkTDArray<SkOpSegment*> fSortedSegments;
+ SkTArray<SkOpSegment*, true> fSortedSegments;
int fFirstSorted;
- SkTDArray<SkCoincidence> fCoincidences;
- SkTDArray<const SkOpContour*> fCrosses;
+ SkTArray<SkCoincidence, true> fCoincidences;
+ SkTArray<const SkOpContour*, true> fCrosses;
SkPathOpsBounds fBounds;
bool fContainsIntercepts; // FIXME: is this used by anybody?
bool fContainsCubics;
« no previous file with comments | « src/pathops/SkOpAngle.h ('k') | src/pathops/SkOpContour.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698