| Index: tests/PathTest.cpp
|
| diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
|
| index 032b646d4e194314f61be4caf0e58c7b9b791401..483d14ec48c7d5e4d8b75497312bddef90c9e879 100644
|
| --- a/tests/PathTest.cpp
|
| +++ b/tests/PathTest.cpp
|
| @@ -4083,7 +4083,7 @@ static void compare_dump(skiatest::Reporter* reporter, const SkPath& path, bool
|
| bool dumpAsHex, const char* str) {
|
| SkDynamicMemoryWStream wStream;
|
| path.dump(&wStream, force, dumpAsHex);
|
| - sk_sp<SkData> data(wStream.copyToData());
|
| + sk_sp<SkData> data = wStream.detachAsData();
|
| REPORTER_ASSERT(reporter, data->size() == strlen(str));
|
| if (strlen(str) > 0) {
|
| REPORTER_ASSERT(reporter, !memcmp(data->data(), str, strlen(str)));
|
|
|