Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / pathops / SkPathOpsOp.cpp
index 4c6923a..72efb89 100644 (file)
@@ -270,6 +270,9 @@ bool Op(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result) {
     SkTArray<SkOpContour> contours;
     // FIXME: add self-intersecting cubics' T values to segment
     SkOpEdgeBuilder builder(*minuend, contours);
+    if (builder.unparseable()) {
+        return false;
+    }
     const int xorMask = builder.xorMask();
     builder.addOperand(*subtrahend);
     if (!builder.finish()) {