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

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

Issue 1745063002: Render batch bounds as stroke rects (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: tweaks Created 4 years, 9 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/BatchBoundsHandler.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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 * Returns a json descripton of all the batches in the image 105 * Returns a json descripton of all the batches in the image
106 */ 106 */
107 class BatchesHandler : public UrlHandler { 107 class BatchesHandler : public UrlHandler {
108 public: 108 public:
109 bool canHandle(const char* method, const char* url) override; 109 bool canHandle(const char* method, const char* url) override;
110 int handle(Request* request, MHD_Connection* connection, 110 int handle(Request* request, MHD_Connection* connection,
111 const char* url, const char* method, 111 const char* url, const char* method,
112 const char* upload_data, size_t* upload_data_size) override; 112 const char* upload_data, size_t* upload_data_size) override;
113 }; 113 };
114 114
115 /*
116 * Enables drawing of batch bounds
117 */
118 class BatchBoundsHandler : public UrlHandler {
119 public:
120 bool canHandle(const char* method, const char* url) override;
121 int handle(Request* request, MHD_Connection* connection,
122 const char* url, const char* method,
123 const char* upload_data, size_t* upload_data_size) override;
124 };
125
115 class RootHandler : public UrlHandler { 126 class RootHandler : public UrlHandler {
116 public: 127 public:
117 bool canHandle(const char* method, const char* url) override; 128 bool canHandle(const char* method, const char* url) override;
118 int handle(Request* request, MHD_Connection* connection, 129 int handle(Request* request, MHD_Connection* connection,
119 const char* url, const char* method, 130 const char* url, const char* method,
120 const char* upload_data, size_t* upload_data_size) override; 131 const char* upload_data, size_t* upload_data_size) override;
121 }; 132 };
122 133
OLDNEW
« no previous file with comments | « tools/skiaserve/urlhandlers/BatchBoundsHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698