diff options
author | 2016-03-11 11:45:53 -0800 | |
---|---|---|
committer | 2016-03-11 11:45:53 -0800 | |
commit | 4083610290308faae347ed94cf7aff9895af6289 (patch) | |
tree | 2cbc0bfb1b3a69ecc022e38937ea571c67c20ecf /tools/skiaserve/Request.h | |
parent | 9c3f14327a38e79ab7d0cf30dfd9bf89676fde06 (diff) |
Fix up no gpu build
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1787843002
Review URL: https://codereview.chromium.org/1787843002
Diffstat (limited to 'tools/skiaserve/Request.h')
-rw-r--r-- | tools/skiaserve/Request.h | 8 |
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; }; |