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

Unified Diff: src/pathops/SkOpContour.cpp

Issue 14034014: path ops -- use standard SkTQSort (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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
Index: src/pathops/SkOpContour.cpp
===================================================================
--- src/pathops/SkOpContour.cpp (revision 8745)
+++ src/pathops/SkOpContour.cpp (working copy)
@@ -7,7 +7,7 @@
#include "SkIntersections.h"
#include "SkOpContour.h"
#include "SkPathWriter.h"
-#include "TSearch.h"
+#include "SkTSort.h"
void SkOpContour::addCoincident(int index, SkOpContour* other, int otherIndex,
const SkIntersections& ts, bool swap) {
@@ -159,7 +159,7 @@
for (int test = 0; test < segmentCount; ++test) {
*fSortedSegments.append() = &fSegments[test];
}
- QSort<SkOpSegment>(fSortedSegments.begin(), fSortedSegments.end() - 1);
+ SkTQSort<SkOpSegment>(fSortedSegments.begin(), fSortedSegments.end() - 1);
fFirstSorted = 0;
}

Powered by Google App Engine
This is Rietveld 408576698