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

Side by Side Diff: tools/skiaserve/urlhandlers/UrlHandler.h

Issue 1893393002: Adding support for playback to L32/S32/F16 canvas. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 8 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/skiaserve/urlhandlers/ColorModeHandler.cpp ('k') | no next file » | 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 "SkColor.h" 8 #include "SkColor.h"
9 9
10 struct MHD_Connection; 10 struct MHD_Connection;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
132 /**
133 * Controls how rendering is performed (L32, S32, F16).
134 * Posting to /colorMode/0 turns on L32, /colorMode/1 turns on sRGB,
135 * /colorMode/2 turns on FP16.
136 */
137 class ColorModeHandler : public UrlHandler {
138 public:
139 bool canHandle(const char* method, const char* url) override;
140 int handle(Request* request, MHD_Connection* connection,
141 const char* url, const char* method,
142 const char* upload_data, size_t* upload_data_size) override;
143 };
OLDNEW
« no previous file with comments | « tools/skiaserve/urlhandlers/ColorModeHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698