OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef Request_DEFINED | 8 #ifndef Request_DEFINED |
9 #define Request_DEFINED | 9 #define Request_DEFINED |
10 | 10 |
11 #if SK_SUPPORT_GPU | 11 #if SK_SUPPORT_GPU |
12 #include "GrContextFactory.h" | 12 #include "GrContextFactory.h" |
13 #endif | 13 #endif |
14 | 14 |
15 #include "SkDebugCanvas.h" | 15 #include "SkDebugCanvas.h" |
16 #include "SkPicture.h" | 16 #include "SkPicture.h" |
17 #include "SkStream.h" | 17 #include "SkStream.h" |
18 #include "SkSurface.h" | 18 #include "SkSurface.h" |
19 | 19 |
20 #include "UrlDataManager.h" | 20 #include "UrlDataManager.h" |
21 | 21 |
| 22 namespace sk_gpu_test { |
22 class GrContextFactory; | 23 class GrContextFactory; |
| 24 } |
23 struct MHD_Connection; | 25 struct MHD_Connection; |
24 struct MHD_PostProcessor; | 26 struct MHD_PostProcessor; |
25 | 27 |
26 struct UploadContext { | 28 struct UploadContext { |
27 SkDynamicMemoryWStream fStream; | 29 SkDynamicMemoryWStream fStream; |
28 MHD_PostProcessor* fPostProcessor; | 30 MHD_PostProcessor* fPostProcessor; |
29 MHD_Connection* connection; | 31 MHD_Connection* connection; |
30 }; | 32 }; |
31 | 33 |
32 struct Request { | 34 struct Request { |
(...skipping 29 matching lines...) Expand all Loading... |
62 | 64 |
63 private: | 65 private: |
64 SkData* writeCanvasToPng(SkCanvas* canvas); | 66 SkData* writeCanvasToPng(SkCanvas* canvas); |
65 void drawToCanvas(int n, int m = -1); | 67 void drawToCanvas(int n, int m = -1); |
66 SkSurface* createCPUSurface(); | 68 SkSurface* createCPUSurface(); |
67 SkSurface* createGPUSurface(); | 69 SkSurface* createGPUSurface(); |
68 SkIRect getBounds(); | 70 SkIRect getBounds(); |
69 GrContext* getContext(); | 71 GrContext* getContext(); |
70 | 72 |
71 sk_sp<SkPicture> fPicture; | 73 sk_sp<SkPicture> fPicture; |
72 GrContextFactory* fContextFactory; | 74 sk_gpu_test::GrContextFactory* fContextFactory; |
73 SkAutoTUnref<SkSurface> fSurface; | 75 SkAutoTUnref<SkSurface> fSurface; |
74 bool fGPUEnabled; | 76 bool fGPUEnabled; |
75 }; | 77 }; |
76 | 78 |
77 #endif | 79 #endif |
OLD | NEW |