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

Unified Diff: tools/skiaserve/Request.h

Issue 1787843002: Fix up no gpu build (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/debugger/SkDebugCanvas.cpp ('k') | tools/skiaserve/Request.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
index 95e7f1568cdbcb17e5e23f4feaa553cb506461d7..52ebf25c2f0d0d1a0fce9ca213b551910e89e421 100644
--- a/tools/skiaserve/Request.h
+++ b/tools/skiaserve/Request.h
@@ -8,7 +8,9 @@
#ifndef Request_DEFINED
#define Request_DEFINED
+#if SK_SUPPORT_GPU
#include "GrContextFactory.h"
+#endif
#include "SkDebugCanvas.h"
#include "SkPicture.h"
@@ -17,6 +19,7 @@
#include "UrlDataManager.h"
+class GrContextFactory;
struct MHD_Connection;
struct MHD_PostProcessor;
@@ -27,7 +30,8 @@ struct UploadContext {
};
struct Request {
- Request(SkString rootUrl);
+ Request(SkString rootUrl);
+ ~Request();
// draws to skia draw op N, highlighting the Mth batch(-1 means no highlight)
SkData* drawToPng(int n, int m = -1);
@@ -65,7 +69,7 @@ private:
GrContext* getContext();
SkAutoTUnref<SkPicture> fPicture;
- SkAutoTDelete<GrContextFactory> fContextFactory;
+ GrContextFactory* fContextFactory;
ethannicholas 2016/03/11 19:21:38 Why this change? I mean, I see you're now cleaning
SkAutoTUnref<SkSurface> fSurface;
bool fGPUEnabled;
};
« no previous file with comments | « tools/debugger/SkDebugCanvas.cpp ('k') | tools/skiaserve/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698