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

Unified Diff: tools/skiaserve/Response.cpp

Issue 1737323002: Wire up /batches in skiaserve (Closed) Base URL: https://skia.googlesource.com/skia@skiaserve-1
Patch Set: minor tweak Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/skiaserve/Response.h ('k') | tools/skiaserve/skiaserve.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/Response.cpp
diff --git a/tools/skiaserve/Response.cpp b/tools/skiaserve/Response.cpp
index 16cb3b6e3d8600467bcaa42b5e7cb1ce64bc85df..61470f122a2a3308922e120fa4bff5f65b1af5b1 100644
--- a/tools/skiaserve/Response.cpp
+++ b/tools/skiaserve/Response.cpp
@@ -77,19 +77,6 @@ int SendData(MHD_Connection* connection, const SkData* data, const char* type,
return ret;
}
-int SendJSON(MHD_Connection* connection, Request* request, int n) {
- SkCanvas* canvas = request->getCanvas();
- SkDebugCanvas* debugCanvas = request->fDebugCanvas;
- UrlDataManager* urlDataManager = &request->fUrlDataManager;
- Json::Value root = debugCanvas->toJSON(*urlDataManager, n, canvas);
- root["mode"] = Json::Value(request->fGPUEnabled ? "gpu" : "cpu");
- SkDynamicMemoryWStream stream;
- stream.writeText(Json::FastWriter().write(root).c_str());
-
- SkAutoTUnref<SkData> data(stream.copyToData());
- return SendData(connection, data, "application/json");
-}
-
int SendTemplate(MHD_Connection* connection, bool redirect, const char* redirectUrl) {
SkString debuggerTemplate = generate_template(SkString(FLAGS_source[0]));
« no previous file with comments | « tools/skiaserve/Response.h ('k') | tools/skiaserve/skiaserve.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698