diff options
Diffstat (limited to 'tools/skiaserve/urlhandlers')
-rw-r--r-- | tools/skiaserve/urlhandlers/BatchesHandler.cpp | 4 | ||||
-rw-r--r-- | tools/skiaserve/urlhandlers/CmdHandler.cpp | 4 | ||||
-rw-r--r-- | tools/skiaserve/urlhandlers/DownloadHandler.cpp | 4 | ||||
-rw-r--r-- | tools/skiaserve/urlhandlers/ImgHandler.cpp | 4 | ||||
-rw-r--r-- | tools/skiaserve/urlhandlers/InfoHandler.cpp | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/tools/skiaserve/urlhandlers/BatchesHandler.cpp b/tools/skiaserve/urlhandlers/BatchesHandler.cpp index b245c4d8f3..81457acca4 100644 --- a/tools/skiaserve/urlhandlers/BatchesHandler.cpp +++ b/tools/skiaserve/urlhandlers/BatchesHandler.cpp @@ -32,8 +32,8 @@ int BatchesHandler::handle(Request* request, MHD_Connection* connection, if (0 == strcmp(method, MHD_HTTP_METHOD_GET)) { int n = request->getLastOp(); - SkAutoTUnref<SkData> data(request->getJsonBatchList(n)); - return SendData(connection, data, "application/json"); + sk_sp<SkData> data(request->getJsonBatchList(n)); + return SendData(connection, data.get(), "application/json"); } return MHD_NO; diff --git a/tools/skiaserve/urlhandlers/CmdHandler.cpp b/tools/skiaserve/urlhandlers/CmdHandler.cpp index 22877e7810..c8ec82d22b 100644 --- a/tools/skiaserve/urlhandlers/CmdHandler.cpp +++ b/tools/skiaserve/urlhandlers/CmdHandler.cpp @@ -37,8 +37,8 @@ int CmdHandler::handle(Request* request, MHD_Connection* connection, sscanf(commands[1].c_str(), "%d", &n); } - SkAutoTUnref<SkData> data(request->getJsonOps(n)); - return SendData(connection, data, "application/json"); + sk_sp<SkData> data(request->getJsonOps(n)); + return SendData(connection, data.get(), "application/json"); } // /cmd/N, for now only delete supported diff --git a/tools/skiaserve/urlhandlers/DownloadHandler.cpp b/tools/skiaserve/urlhandlers/DownloadHandler.cpp index 4e2391588b..17bf867485 100644 --- a/tools/skiaserve/urlhandlers/DownloadHandler.cpp +++ b/tools/skiaserve/urlhandlers/DownloadHandler.cpp @@ -25,9 +25,9 @@ int DownloadHandler::handle(Request* request, MHD_Connection* connection, return MHD_NO; } - SkAutoTUnref<SkData> data(request->writeOutSkp()); + sk_sp<SkData> data(request->writeOutSkp()); // TODO fancier name handling - return SendData(connection, data, "application/octet-stream", true, + return SendData(connection, data.get(), "application/octet-stream", true, "attachment; filename=something.skp;"); } diff --git a/tools/skiaserve/urlhandlers/ImgHandler.cpp b/tools/skiaserve/urlhandlers/ImgHandler.cpp index 91ea6d06de..659c215197 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"); } diff --git a/tools/skiaserve/urlhandlers/InfoHandler.cpp b/tools/skiaserve/urlhandlers/InfoHandler.cpp index 464bbb35e1..9335458f5f 100644 --- a/tools/skiaserve/urlhandlers/InfoHandler.cpp +++ b/tools/skiaserve/urlhandlers/InfoHandler.cpp @@ -37,6 +37,6 @@ int InfoHandler::handle(Request* request, MHD_Connection* connection, sscanf(commands[1].c_str(), "%d", &n); } - SkAutoTUnref<SkData> data(request->getJsonInfo(n)); - return SendData(connection, data, "application/json"); + sk_sp<SkData> data(request->getJsonInfo(n)); + return SendData(connection, data.get(), "application/json"); } |