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 "GrContext.h" | 18 #include "GrContext.h" |
19 #include "GrSurfacePriv.h" | 19 #include "GrSurfacePriv.h" |
| 20 #include "draws/GrDrawRect.h" |
20 | 21 |
21 struct SkDrawProcs; | 22 struct SkDrawProcs; |
22 struct GrSkDrawProcs; | 23 struct GrSkDrawProcs; |
23 | 24 |
24 class GrAccelData; | 25 class GrAccelData; |
25 struct GrCachedLayer; | 26 struct GrCachedLayer; |
26 | 27 |
27 /** | 28 /** |
28 * Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by th
e | 29 * Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by th
e |
29 * canvas. | 30 * canvas. |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 237 |
237 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 238 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
238 int sampleCount); | 239 int sampleCount); |
239 | 240 |
240 friend class GrAtlasTextContext; | 241 friend class GrAtlasTextContext; |
241 friend class SkSurface_Gpu; // for access to surfaceProps | 242 friend class SkSurface_Gpu; // for access to surfaceProps |
242 typedef SkBaseDevice INHERITED; | 243 typedef SkBaseDevice INHERITED; |
243 }; | 244 }; |
244 | 245 |
245 #endif | 246 #endif |
OLD | NEW |