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

Unified Diff: tools/skiaserve/Request.h

Issue 1738483003: Move Request to its own file in preparation for numerous cleanups (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: merge 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 | « no previous file | tools/skiaserve/skiaserve.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/Request.h
diff --git a/tools/skiaserve/Request.h b/tools/skiaserve/Request.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd18bdad9cb604032280b54940eea3b060b08e2c
--- /dev/null
+++ b/tools/skiaserve/Request.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef Request_DEFINED
+#define Request_DEFINED
+
+#include "GrContextFactory.h"
+
+#include "SkDebugCanvas.h"
+#include "SkPicture.h"
+#include "SkStream.h"
+#include "SkSurface.h"
+
+#include "UrlDataManager.h"
+
+struct MHD_Connection;
+struct MHD_PostProcessor;
+
+struct UploadContext {
+ SkDynamicMemoryWStream fStream;
+ MHD_PostProcessor* fPostProcessor;
+ MHD_Connection* connection;
+};
+
+struct Request {
+ Request(SkString rootUrl)
+ : fUploadContext(nullptr)
+ , fUrlDataManager(rootUrl)
+ , fGPUEnabled(false) {}
+
+ UploadContext* fUploadContext;
+ SkAutoTUnref<SkPicture> fPicture;
+ SkAutoTUnref<SkDebugCanvas> fDebugCanvas;
+ SkAutoTDelete<GrContextFactory> fContextFactory;
+ SkAutoTUnref<SkSurface> fSurface;
+ UrlDataManager fUrlDataManager;
+ bool fGPUEnabled;
+};
+
+#endif
+
« no previous file with comments | « no previous file | tools/skiaserve/skiaserve.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698