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

Unified Diff: src/pathops/SkDCubicToQuads.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/SkDCubicToQuads.cpp
===================================================================
--- src/pathops/SkDCubicToQuads.cpp (revision 8745)
+++ src/pathops/SkDCubicToQuads.cpp (working copy)
@@ -50,7 +50,7 @@
#include "SkPathOpsQuad.h"
#include "SkReduceOrder.h"
#include "SkTDArray.h"
-#include "TSearch.h"
+#include "SkTSort.h"
#define USE_CUBIC_END_POINTS 1
@@ -129,7 +129,7 @@
inflections += findMaxCurvature(&inflectT[inflections]);
SkASSERT(inflections <= 5);
}
- QSort<double>(inflectT, &inflectT[inflections - 1]);
+ SkTQSort<double>(inflectT, &inflectT[inflections - 1]);
// OPTIMIZATION: is this filtering common enough that it needs to be pulled out into its
// own subroutine?
while (inflections && approximately_less_than_zero(inflectT[0])) {

Powered by Google App Engine
This is Rietveld 408576698