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

Side by Side Diff: tools/skiaserve/Request.h

Issue 1815823002: Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
Patch Set: fix windows and android? Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « tools/kilobench/kilobench.cpp ('k') | tools/skiaserve/Request.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/kilobench/kilobench.cpp ('k') | tools/skiaserve/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698