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

Unified Diff: src/pathops/SkDQuadIntersection.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/SkDQuadIntersection.cpp
===================================================================
--- src/pathops/SkDQuadIntersection.cpp (revision 8745)
+++ src/pathops/SkDQuadIntersection.cpp (working copy)
@@ -10,7 +10,7 @@
#include "SkPathOpsLine.h"
#include "SkQuarticRoot.h"
#include "SkTDArray.h"
-#include "TSearch.h"
+#include "SkTSort.h"
/* given the implicit form 0 = Ax^2 + Bxy + Cy^2 + Dx + Ey + F
* and given x = at^2 + bt + c (the parameterized form)
@@ -169,7 +169,7 @@
if (tCount == 1) {
tMin = tMax = tsFound[0];
} else if (tCount > 1) {
- QSort<double>(tsFound.begin(), tsFound.end() - 1);
+ SkTQSort<double>(tsFound.begin(), tsFound.end() - 1);
tMin = tsFound[0];
tMax = tsFound[tsFound.count() - 1];
}

Powered by Google App Engine
This is Rietveld 408576698