Index: src/pathops/SkPathOpsSimplify.cpp |
diff --git a/src/pathops/SkPathOpsSimplify.cpp b/src/pathops/SkPathOpsSimplify.cpp |
index 5c8a7fd840aef76e0f5dcc5d1fc139d88acc70d6..7a234ecb01ecb61a751b49368ca6391b90aac61f 100644 |
--- a/src/pathops/SkPathOpsSimplify.cpp |
+++ b/src/pathops/SkPathOpsSimplify.cpp |
@@ -177,7 +177,6 @@ |
// FIXME : add this as a member of SkPath |
bool Simplify(const SkPath& path, SkPath* result) { |
- SkChunkAlloc allocator(4096); // FIXME: constant-ize, tune |
// returns 1 for evenodd, -1 for winding, regardless of inverse-ness |
SkPath::FillType fillType = path.isInverseFillType() ? SkPath::kInverseEvenOdd_FillType |
: SkPath::kEvenOdd_FillType; |
@@ -195,6 +194,7 @@ |
#if DEBUG_SORT || DEBUG_SWAP_TOP |
SkPathOpsDebug::gSortCount = SkPathOpsDebug::gSortCountDefault; |
#endif |
+ SkChunkAlloc allocator(4096); // FIXME: constant-ize, tune |
SkOpEdgeBuilder builder(path, &contour, &allocator, &globalState); |
if (!builder.finish(&allocator)) { |
return false; |