| 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 25 matching lines...) Expand all Loading... |
| 36 } else if (commands.count() == 2) { | 36 } else if (commands.count() == 2) { |
| 37 sscanf(commands[1].c_str(), "%d", &n); | 37 sscanf(commands[1].c_str(), "%d", &n); |
| 38 } else { | 38 } else { |
| 39 sscanf(commands[1].c_str(), "%d", &n); | 39 sscanf(commands[1].c_str(), "%d", &n); |
| 40 sscanf(commands[2].c_str(), "%d", &m); | 40 sscanf(commands[2].c_str(), "%d", &m); |
| 41 } | 41 } |
| 42 | 42 |
| 43 SkAutoTUnref<SkData> data(request->drawToPng(n, m)); | 43 SkAutoTUnref<SkData> data(request->drawToPng(n, m)); |
| 44 return SendData(connection, data, "image/png"); | 44 return SendData(connection, data, "image/png"); |
| 45 } | 45 } |
| 46 | |
| OLD | NEW |