Index: src/pathops/SkPathOpsOp.cpp |
diff --git a/src/pathops/SkPathOpsOp.cpp b/src/pathops/SkPathOpsOp.cpp |
index 9472594b4a7e29f7fc045a5235feeb6e845b3cf4..b7a48b0510c39f525ff076d6fe06ec1d35f4a232 100644 |
--- a/src/pathops/SkPathOpsOp.cpp |
+++ b/src/pathops/SkPathOpsOp.cpp |
@@ -206,7 +206,7 @@ static const bool gOutInverse[kReverseDifference_SkPathOp + 1][2][2] = { |
static void dump_path(FILE* file, const SkPath& path, bool force, bool dumpAsHex) { |
SkDynamicMemoryWStream wStream; |
path.dump(&wStream, force, dumpAsHex); |
- sk_sp<SkData> data(wStream.copyToData()); |
+ sk_sp<SkData> data(wStream.detachAsData()); |
fprintf(file, "%.*s\n", (int) data->size(), data->data()); |
} |