OLD | NEW |
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 SkAutoTUnref<SkData> data(stream.copyToData()); |
84 return SendData(connection, data, "application/json"); | 84 return SendData(connection, data, "application/json"); |
85 } | 85 } |
86 | |
OLD | NEW |