diff options
author | bungeman <bungeman@google.com> | 2016-08-02 14:40:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-02 14:40:46 -0700 |
commit | 38d909ec2875f79952de08f36adfaac5680d2c53 (patch) | |
tree | a11067146b42f3faa8531d6ef912f7246bbde1f2 /tools/skiaserve/urlhandlers | |
parent | ada5a44f3bdac10a8a0c53b34f5add7aea9fdbb0 (diff) |
Move off SK_SUPPORT_LEGACY_DATA_FACTORIES.
This moves Skia code off of SK_SUPPORT_LEGACY_DATA_FACTORIES.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2206633004
Review-Url: https://codereview.chromium.org/2206633004
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"); } |