From ffae30db4ade45b469ac3432ec373b6f6daee6e7 Mon Sep 17 00:00:00 2001 From: bungeman Date: Wed, 3 Aug 2016 13:32:32 -0700 Subject: Convert SkAutoTUnref to sk_sp. With the move from SkData::NewXXX to SkData::MakeXXX most SkAutoTUnref were changed to sk_sp. However, there are still a few SkAutoTUnref around, so clean them up. Review-Url: https://codereview.chromium.org/2212493002 --- tools/skiaserve/urlhandlers/BreakHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/skiaserve/urlhandlers/BreakHandler.cpp') diff --git a/tools/skiaserve/urlhandlers/BreakHandler.cpp b/tools/skiaserve/urlhandlers/BreakHandler.cpp index 16bf507297..7766adb021 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 data(stream.copyToData()); - return SendData(connection, data, "application/json"); + sk_sp data(stream.copyToData()); + return SendData(connection, data.get(), "application/json"); } -- cgit v1.2.3