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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 protected: | 126 protected: |
127 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OVERRIDE; | 127 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OVERRIDE; |
128 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVE
RRIDE; | 128 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVE
RRIDE; |
129 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; | 129 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; |
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 GrClipData fClipData; | 138 SkAutoTUnref<const SkClipStack> fClipStack; |
139 GrTextContext* fTextContext; | 139 SkIPoint fClipOrigin; |
140 SkSurfaceProps fSurfaceProps; | 140 GrClip fClipData; |
141 GrRenderTarget* fRenderTarget; | 141 GrTextContext* fTextContext; |
| 142 SkSurfaceProps fSurfaceProps; |
| 143 GrRenderTarget* fRenderTarget; |
142 // remove when our clients don't rely on accessBitmap() | 144 // remove when our clients don't rely on accessBitmap() |
143 SkBitmap fLegacyBitmap; | 145 SkBitmap fLegacyBitmap; |
144 bool fNeedClear; | 146 bool fNeedClear; |
145 | 147 |
146 SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags); | 148 SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags); |
147 | 149 |
148 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; | 150 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; |
149 | 151 |
150 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE
; | 152 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE
; |
151 | 153 |
152 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 154 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
153 | 155 |
154 bool forceConservativeRasterClip() const SK_OVERRIDE { return true; } | 156 bool forceConservativeRasterClip() const SK_OVERRIDE { return true; } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 203 |
202 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 204 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
203 | 205 |
204 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 206 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
205 int sampleCount); | 207 int sampleCount); |
206 | 208 |
207 typedef SkBaseDevice INHERITED; | 209 typedef SkBaseDevice INHERITED; |
208 }; | 210 }; |
209 | 211 |
210 #endif | 212 #endif |
OLD | NEW |