SkString GrAuditTrail::toJson(bool prettyPrint) const {
SkString json;
json.append("{");
- JsonifyTArray(&json, "Batches", fOpList, false);
+ JsonifyTArray(&json, "Ops", fOpList, false);
json.append("}");
if (prettyPrint) {
json.append("{");
Ops** ops = fClientIDLookup.find(clientID);
if (ops) {
- JsonifyTArray(&json, "Batches", **ops, false);
+ JsonifyTArray(&json, "Ops", **ops, false);
}
json.appendf("}");
json.append("{");
json.appendf("\"Name\": \"%s\",", fName.c_str());
json.appendf("\"ClientID\": \"%d\",", fClientID);
- json.appendf("\"BatchListID\": \"%d\",", fOpListID);
+ json.appendf("\"OpListID\": \"%d\",", fOpListID);
json.appendf("\"ChildID\": \"%d\",", fChildID);
skrect_to_json(&json, "Bounds", fBounds);
if (fStackTrace.count()) {
json.append("{");
json.appendf("\"RenderTarget\": \"%u\",", fRenderTargetUniqueID.asUInt());
skrect_to_json(&json, "Bounds", fBounds);
- JsonifyTArray(&json, "Batches", fChildren, true);
+ JsonifyTArray(&json, "Ops", fChildren, true);
json.append("}");
return json;
}
SkCanvas* canvas = this->getCanvas();
Json::Value root = fDebugCanvas->toJSON(fUrlDataManager, n, canvas);
root["mode"] = Json::Value(fGPUEnabled ? "gpu" : "cpu");
- root["drawGpuBatchBounds"] = Json::Value(fDebugCanvas->getDrawGpuOpBounds());
+ root["drawGpuOpBounds"] = Json::Value(fDebugCanvas->getDrawGpuOpBounds());
root["colorMode"] = Json::Value(fColorMode);
SkDynamicMemoryWStream stream;
stream.writeText(Json::FastWriter().write(root).c_str());
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));
}
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));
}
return MHD_NO;
}
- // /batches
+ // /ops
if (0 == strcmp(method, MHD_HTTP_METHOD_GET)) {
int n = request->getLastOp();