aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skiaserve/urlhandlers
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2016-12-21 15:40:26 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-05 19:30:27 +0000
commitf09492bb4237419332fad42b951ff4733f15e6ee (patch)
tree84d75da62a3813a55804b78ce7b65510a8593385 /tools/skiaserve/urlhandlers
parent7d92103f9ebed04c54f4ec8636f98dc0e4fc3056 (diff)
Rename batch->op in GrAuditTrail json and skiaserver's url handlers
Requires Infra change https://skia-review.googlesource.com/c/6397/ Change-Id: Ic04ea07a0450a99b291f1bc06d4a501d86f65f51 Reviewed-on: https://skia-review.googlesource.com/6398 Reviewed-by: Joe Gregorio <jcgregorio@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tools/skiaserve/urlhandlers')
-rw-r--r--tools/skiaserve/urlhandlers/OpBoundsHandler.cpp2
-rw-r--r--tools/skiaserve/urlhandlers/OpsHandler.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/skiaserve/urlhandlers/OpBoundsHandler.cpp b/tools/skiaserve/urlhandlers/OpBoundsHandler.cpp
index f0e9758b63..e9a120f68c 100644
--- a/tools/skiaserve/urlhandlers/OpBoundsHandler.cpp
+++ b/tools/skiaserve/urlhandlers/OpBoundsHandler.cpp
@@ -14,7 +14,7 @@
using namespace Response;
bool OpBoundsHandler::canHandle(const char* method, const char* url) {
- static const char* kBasePath = "/batchBounds/";
+ static const char* kBasePath = "/gpuOpBounds/";
return 0 == strcmp(method, MHD_HTTP_METHOD_POST) &&
0 == strncmp(url, kBasePath, strlen(kBasePath));
}
diff --git a/tools/skiaserve/urlhandlers/OpsHandler.cpp b/tools/skiaserve/urlhandlers/OpsHandler.cpp
index a44e594c6b..852c526bce 100644
--- a/tools/skiaserve/urlhandlers/OpsHandler.cpp
+++ b/tools/skiaserve/urlhandlers/OpsHandler.cpp
@@ -14,7 +14,7 @@
using namespace Response;
bool OpsHandler::canHandle(const char* method, const char* url) {
- const char* kBasePath = "/batches";
+ const char* kBasePath = "/ops";
return 0 == strncmp(url, kBasePath, strlen(kBasePath));
}
@@ -27,7 +27,7 @@ int OpsHandler::handle(Request* request, MHD_Connection* connection, const char*
return MHD_NO;
}
- // /batches
+ // /ops
if (0 == strcmp(method, MHD_HTTP_METHOD_GET)) {
int n = request->getLastOp();