Chromium Code Reviews| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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; |
|
bsalomon
2015/02/23 19:31:30
alignment
| |
| 139 SkIPoint fClipOrigin; | |
| 140 GrClip fClipData; | |
| 139 GrTextContext* fTextContext; | 141 GrTextContext* fTextContext; |
| 140 SkSurfaceProps fSurfaceProps; | 142 SkSurfaceProps fSurfaceProps; |
| 141 GrRenderTarget* fRenderTarget; | 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; |
| (...skipping 52 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 |