Index: tools/skiaserve/urlhandlers/BreakHandler.cpp |
diff --git a/tools/skiaserve/urlhandlers/BreakHandler.cpp b/tools/skiaserve/urlhandlers/BreakHandler.cpp |
index 16bf5072978c6a68c1b76f2c501c3221e79858ce..7766adb021c5de880ed987b11f751cb05540b4b2 100644 |
--- a/tools/skiaserve/urlhandlers/BreakHandler.cpp |
+++ b/tools/skiaserve/urlhandlers/BreakHandler.cpp |
@@ -80,6 +80,6 @@ int BreakHandler::handle(Request* request, MHD_Connection* connection, |
canvas->restoreToCount(saveCount); |
SkDynamicMemoryWStream stream; |
stream.writeText(Json::FastWriter().write(response).c_str()); |
- SkAutoTUnref<SkData> data(stream.copyToData()); |
- return SendData(connection, data, "application/json"); |
+ sk_sp<SkData> data(stream.copyToData()); |
+ return SendData(connection, data.get(), "application/json"); |
} |