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

Unified Diff: tools/skiaserve/skiaserve.cpp

Issue 1741823002: Get SkiaServe Request started off with a little privacy (Closed) Base URL: https://skia.googlesource.com/skia@skiaserve-7-wireup
Patch Set: 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/Request.cpp ('k') | tools/skiaserve/urlhandlers/EnableGPUHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/skiaserve.cpp
diff --git a/tools/skiaserve/skiaserve.cpp b/tools/skiaserve/skiaserve.cpp
index d493f7d92357b011ca63987386ce2d332f5bde6b..b593e7224f94dc058852df2929c3abba12b3f73d 100644
--- a/tools/skiaserve/skiaserve.cpp
+++ b/tools/skiaserve/skiaserve.cpp
@@ -5,9 +5,6 @@
* found in the LICENSE file.
*/
-#include "GrCaps.h"
-#include "GrContextFactory.h"
-
#include "Request.h"
#include "Response.h"
@@ -84,11 +81,6 @@ int answer_to_connection(void* cls, struct MHD_Connection* connection,
int skiaserve_main() {
Request request(SkString("/data")); // This simple server has one request
- // create surface
- GrContextOptions grContextOpts;
- request.fContextFactory.reset(new GrContextFactory(grContextOpts));
- request.fSurface.reset(request.createCPUSurface());
-
struct MHD_Daemon* daemon;
// TODO Add option to bind this strictly to an address, e.g. localhost, for security.
daemon = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY, FLAGS_port, nullptr, nullptr,
« no previous file with comments | « tools/skiaserve/Request.cpp ('k') | tools/skiaserve/urlhandlers/EnableGPUHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698