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 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 UploadContext* fUploadContext; | 55 UploadContext* fUploadContext; |
56 SkAutoTUnref<SkDebugCanvas> fDebugCanvas; | 56 SkAutoTUnref<SkDebugCanvas> fDebugCanvas; |
57 UrlDataManager fUrlDataManager; | 57 UrlDataManager fUrlDataManager; |
58 | 58 |
59 private: | 59 private: |
60 SkData* writeCanvasToPng(SkCanvas* canvas); | 60 SkData* writeCanvasToPng(SkCanvas* canvas); |
61 void drawToCanvas(int n, int m = -1); | 61 void drawToCanvas(int n, int m = -1); |
62 SkSurface* createCPUSurface(); | 62 SkSurface* createCPUSurface(); |
63 SkSurface* createGPUSurface(); | 63 SkSurface* createGPUSurface(); |
64 GrAuditTrail* getAuditTrail(SkCanvas*); | 64 SkIRect getBounds(); |
65 void cleanupAuditTrail(SkCanvas*); | 65 GrContext* getContext(); |
66 | 66 |
67 SkAutoTUnref<SkPicture> fPicture; | 67 SkAutoTUnref<SkPicture> fPicture; |
68 SkAutoTDelete<GrContextFactory> fContextFactory; | 68 SkAutoTDelete<GrContextFactory> fContextFactory; |
69 SkAutoTUnref<SkSurface> fSurface; | 69 SkAutoTUnref<SkSurface> fSurface; |
70 bool fGPUEnabled; | 70 bool fGPUEnabled; |
71 }; | 71 }; |
72 | 72 |
73 #endif | 73 #endif |
74 | 74 |
OLD | NEW |