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 |
11 | 11 |
12 #include "SkGr.h" | 12 #include "SkGr.h" |
13 #include "SkBitmap.h" | 13 #include "SkBitmap.h" |
14 #include "SkDevice.h" | 14 #include "SkDevice.h" |
15 #include "SkPicture.h" | 15 #include "SkPicture.h" |
16 #include "SkRegion.h" | 16 #include "SkRegion.h" |
17 #include "SkSurface.h" | 17 #include "SkSurface.h" |
18 #include "GrDrawContext.h" | 18 #include "GrDrawContext.h" |
19 #include "GrContext.h" | 19 #include "GrContext.h" |
20 #include "GrSurfacePriv.h" | 20 #include "GrSurfacePriv.h" |
| 21 #include "GrTypes.h" |
21 | 22 |
22 class GrAccelData; | 23 class GrAccelData; |
23 class GrTextureProducer; | 24 class GrTextureProducer; |
24 struct GrCachedLayer; | 25 struct GrCachedLayer; |
25 | 26 |
26 /** | 27 /** |
27 * Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by th
e | 28 * Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by th
e |
28 * canvas. | 29 * canvas. |
29 */ | 30 */ |
30 class SK_API SkGpuDevice : public SkBaseDevice { | 31 class SK_API SkGpuDevice : public SkBaseDevice { |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 const SkMatrix& srcToDstMatrix, | 250 const SkMatrix& srcToDstMatrix, |
250 const GrClip&, | 251 const GrClip&, |
251 const SkPaint&); | 252 const SkPaint&); |
252 | 253 |
253 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, | 254 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, |
254 const SkRect& dst, const SkPaint&); | 255 const SkRect& dst, const SkPaint&); |
255 | 256 |
256 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 257 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
257 | 258 |
258 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 259 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
259 int sampleCount); | 260 int sampleCount, TextureStorageAll
ocator*); |
260 | 261 |
261 friend class GrAtlasTextContext; | 262 friend class GrAtlasTextContext; |
262 friend class SkSurface_Gpu; // for access to surfaceProps | 263 friend class SkSurface_Gpu; // for access to surfaceProps |
263 typedef SkBaseDevice INHERITED; | 264 typedef SkBaseDevice INHERITED; |
264 }; | 265 }; |
265 | 266 |
266 #endif | 267 #endif |
OLD | NEW |