OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkGpuDevice_DEFINED | 9 #ifndef SkGpuDevice_DEFINED |
10 #define SkGpuDevice_DEFINED | 10 #define SkGpuDevice_DEFINED |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, | 144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, |
145 const SkMatrix*, const SkPaint*) overr
ide; | 145 const SkMatrix*, const SkPaint*) overr
ide; |
146 | 146 |
147 private: | 147 private: |
148 GrContext* fContext; | 148 GrContext* fContext; |
149 GrSkDrawProcs* fDrawProcs; | 149 GrSkDrawProcs* fDrawProcs; |
150 SkAutoTUnref<const SkClipStack> fClipStack; | 150 SkAutoTUnref<const SkClipStack> fClipStack; |
151 SkIPoint fClipOrigin; | 151 SkIPoint fClipOrigin; |
152 GrClip fClip; | 152 GrClip fClip; |
153 GrTextContext* fTextContext; | 153 GrTextContext* fTextContext; |
| 154 SkAutoTUnref<GrDrawContext> fDrawContext; |
154 SkSurfaceProps fSurfaceProps; | 155 SkSurfaceProps fSurfaceProps; |
155 GrRenderTarget* fRenderTarget; | 156 GrRenderTarget* fRenderTarget; |
156 // remove when our clients don't rely on accessBitmap() | 157 // remove when our clients don't rely on accessBitmap() |
157 SkBitmap fLegacyBitmap; | 158 SkBitmap fLegacyBitmap; |
158 bool fNeedClear; | 159 bool fNeedClear; |
159 | 160 |
160 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, u
nsigned flags); | 161 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, u
nsigned flags); |
161 | 162 |
162 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; | 163 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; |
163 | 164 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 220 |
220 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 221 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
221 int sampleCount); | 222 int sampleCount); |
222 | 223 |
223 friend class GrAtlasTextContext; | 224 friend class GrAtlasTextContext; |
224 friend class GrTextContext; | 225 friend class GrTextContext; |
225 typedef SkBaseDevice INHERITED; | 226 typedef SkBaseDevice INHERITED; |
226 }; | 227 }; |
227 | 228 |
228 #endif | 229 #endif |
OLD | NEW |