| 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 "SkColor.h" | 8 #include "SkColor.h" |
| 9 | 9 |
| 10 struct MHD_Connection; | 10 struct MHD_Connection; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 */ | 49 */ |
| 50 class ClipAlphaHandler : public UrlHandler { | 50 class ClipAlphaHandler : public UrlHandler { |
| 51 public: | 51 public: |
| 52 bool canHandle(const char* method, const char* url) override; | 52 bool canHandle(const char* method, const char* url) override; |
| 53 int handle(Request* request, MHD_Connection* connection, | 53 int handle(Request* request, MHD_Connection* connection, |
| 54 const char* url, const char* method, | 54 const char* url, const char* method, |
| 55 const char* upload_data, size_t* upload_data_size) override; | 55 const char* upload_data, size_t* upload_data_size) override; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 Controls whether GPU rendering is enabled. Posting to /enableGPU/1 turns GPU
on, /enableGPU/0 | 59 Controls whether GPU rendering is enabled. Posting to /enableGPU/1 turns GPU
on, /enableGPU/0 |
| 60 disables it. | 60 disables it. |
| 61 */ | 61 */ |
| 62 class EnableGPUHandler : public UrlHandler { | 62 class EnableGPUHandler : public UrlHandler { |
| 63 public: | 63 public: |
| 64 bool canHandle(const char* method, const char* url) override; | 64 bool canHandle(const char* method, const char* url) override; |
| 65 int handle(Request* request, MHD_Connection* connection, | 65 int handle(Request* request, MHD_Connection* connection, |
| 66 const char* url, const char* method, | 66 const char* url, const char* method, |
| 67 const char* upload_data, size_t* upload_data_size) override; | 67 const char* upload_data, size_t* upload_data_size) override; |
| 68 }; | 68 }; |
| 69 | 69 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 const char* upload_data, size_t* upload_data_size) override; | 121 const char* upload_data, size_t* upload_data_size) override; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 class RootHandler : public UrlHandler { | 124 class RootHandler : public UrlHandler { |
| 125 public: | 125 public: |
| 126 bool canHandle(const char* method, const char* url) override; | 126 bool canHandle(const char* method, const char* url) override; |
| 127 int handle(Request* request, MHD_Connection* connection, | 127 int handle(Request* request, MHD_Connection* connection, |
| 128 const char* url, const char* method, | 128 const char* url, const char* method, |
| 129 const char* upload_data, size_t* upload_data_size) override; | 129 const char* upload_data, size_t* upload_data_size) override; |
| 130 }; | 130 }; |
| 131 | |
| OLD | NEW |