aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skiaserve/Request.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-03-11 11:45:53 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-11 11:45:53 -0800
commit4083610290308faae347ed94cf7aff9895af6289 (patch)
tree2cbc0bfb1b3a69ecc022e38937ea571c67c20ecf /tools/skiaserve/Request.h
parent9c3f14327a38e79ab7d0cf30dfd9bf89676fde06 (diff)
Fix up no gpu build
Diffstat (limited to 'tools/skiaserve/Request.h')
-rw-r--r--tools/skiaserve/Request.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/skiaserve/Request.h b/tools/skiaserve/Request.h
index 95e7f1568c..52ebf25c2f 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;
SkAutoTUnref<SkSurface> fSurface;
bool fGPUEnabled;
};