Index: tools/skiaserve/urlhandlers/UrlHandler.h |
diff --git a/tools/skiaserve/urlhandlers/UrlHandler.h b/tools/skiaserve/urlhandlers/UrlHandler.h |
index 02a07b0d143d157e591020591cced7e2ae96aa30..adbdcb9aa2e3540eb3ecc06b9c4f2fef5a9eadc5 100644 |
--- a/tools/skiaserve/urlhandlers/UrlHandler.h |
+++ b/tools/skiaserve/urlhandlers/UrlHandler.h |
@@ -128,3 +128,16 @@ public: |
const char* url, const char* method, |
const char* upload_data, size_t* upload_data_size) override; |
}; |
+ |
+/** |
+ * Controls how rendering is performed (L32, S32, F16). |
+ * Posting to /colorMode/0 turns on L32, /colorMode/1 turns on sRGB, |
+ * /colorMode/2 turns on FP16. |
+ */ |
+class ColorModeHandler : public UrlHandler { |
+public: |
+ bool canHandle(const char* method, const char* url) override; |
+ int handle(Request* request, MHD_Connection* connection, |
+ const char* url, const char* method, |
+ const char* upload_data, size_t* upload_data_size) override; |
+}; |