Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: tools/skiaserve/urlhandlers/BreakHandler.cpp

Issue 2212493002: Convert SkAutoTUnref<SkData> to sk_sp<SkData>. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/UrlDataManager.h ('k') | tools/visualize_color_gamut.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "UrlHandler.h" 8 #include "UrlHandler.h"
9 9
10 #include "microhttpd.h" 10 #include "microhttpd.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 endColor.append(Json::Value(SkColorGetB(current))); 73 endColor.append(Json::Value(SkColorGetB(current)));
74 endColor.append(Json::Value(SkColorGetA(current))); 74 endColor.append(Json::Value(SkColorGetA(current)));
75 response["endColor"] = endColor; 75 response["endColor"] = endColor;
76 response["endOp"] = Json::Value(index); 76 response["endOp"] = Json::Value(index);
77 break; 77 break;
78 } 78 }
79 } 79 }
80 canvas->restoreToCount(saveCount); 80 canvas->restoreToCount(saveCount);
81 SkDynamicMemoryWStream stream; 81 SkDynamicMemoryWStream stream;
82 stream.writeText(Json::FastWriter().write(response).c_str()); 82 stream.writeText(Json::FastWriter().write(response).c_str());
83 SkAutoTUnref<SkData> data(stream.copyToData()); 83 sk_sp<SkData> data(stream.copyToData());
84 return SendData(connection, data, "application/json"); 84 return SendData(connection, data.get(), "application/json");
85 } 85 }
OLDNEW
« no previous file with comments | « tools/UrlDataManager.h ('k') | tools/visualize_color_gamut.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698