Index: tools/skiaserve/urlhandlers/ImgHandler.cpp |
diff --git a/tools/skiaserve/urlhandlers/ImgHandler.cpp b/tools/skiaserve/urlhandlers/ImgHandler.cpp |
index 91ea6d06de2d3b43f91fe579a868c2b15a919930..659c215197cbcdabe52643b132689ffa3b0bb52f 100644 |
--- a/tools/skiaserve/urlhandlers/ImgHandler.cpp |
+++ b/tools/skiaserve/urlhandlers/ImgHandler.cpp |
@@ -40,6 +40,6 @@ int ImgHandler::handle(Request* request, MHD_Connection* connection, |
sscanf(commands[2].c_str(), "%d", &m); |
} |
- SkAutoTUnref<SkData> data(request->drawToPng(n, m)); |
- return SendData(connection, data, "image/png"); |
+ sk_sp<SkData> data(request->drawToPng(n, m)); |
+ return SendData(connection, data.get(), "image/png"); |
} |