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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 /** PRIVATE / EXPERIMENTAL -- do not call */ | 131 /** PRIVATE / EXPERIMENTAL -- do not call */ |
132 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, | 132 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, |
133 const SkMatrix*, const SkPaint*) SK_OV
ERRIDE; | 133 const SkMatrix*, const SkPaint*) SK_OV
ERRIDE; |
134 | 134 |
135 private: | 135 private: |
136 GrContext* fContext; | 136 GrContext* fContext; |
137 GrSkDrawProcs* fDrawProcs; | 137 GrSkDrawProcs* fDrawProcs; |
138 SkAutoTUnref<const SkClipStack> fClipStack; | 138 SkAutoTUnref<const SkClipStack> fClipStack; |
139 SkIPoint fClipOrigin; | 139 SkIPoint fClipOrigin; |
140 GrClip fClip; | 140 GrClip fClipData; |
141 GrTextContext* fTextContext; | 141 GrTextContext* fTextContext; |
142 SkSurfaceProps fSurfaceProps; | 142 SkSurfaceProps fSurfaceProps; |
143 GrRenderTarget* fRenderTarget; | 143 GrRenderTarget* fRenderTarget; |
144 // remove when our clients don't rely on accessBitmap() | 144 // remove when our clients don't rely on accessBitmap() |
145 SkBitmap fLegacyBitmap; | 145 SkBitmap fLegacyBitmap; |
146 bool fNeedClear; | 146 bool fNeedClear; |
147 | 147 |
148 SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags); | 148 SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags); |
149 | 149 |
150 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; | 150 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 204 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
205 | 205 |
206 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 206 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
207 int sampleCount); | 207 int sampleCount); |
208 | 208 |
209 typedef SkBaseDevice INHERITED; | 209 typedef SkBaseDevice INHERITED; |
210 }; | 210 }; |
211 | 211 |
212 #endif | 212 #endif |
OLD | NEW |