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 | 9 |
10 | 10 |
11 #ifndef SkGpuDevice_DEFINED | 11 #ifndef SkGpuDevice_DEFINED |
12 #define SkGpuDevice_DEFINED | 12 #define SkGpuDevice_DEFINED |
13 | 13 |
14 #include "SkGr.h" | 14 #include "SkGr.h" |
15 #include "SkBitmap.h" | 15 #include "SkBitmap.h" |
16 #include "SkBitmapDevice.h" | 16 #include "SkBitmapDevice.h" |
17 #include "SkRegion.h" | 17 #include "SkRegion.h" |
18 #include "GrContext.h" | 18 #include "GrContext.h" |
19 #include "GrTextContext.h" | |
20 | 19 |
21 struct SkDrawProcs; | 20 struct SkDrawProcs; |
22 struct GrSkDrawProcs; | 21 struct GrSkDrawProcs; |
23 | 22 |
| 23 class GrTextContextManager; |
| 24 |
24 /** | 25 /** |
25 * Subclass of SkBitmapDevice, which directs all drawing to the GrGpu owned by
the | 26 * Subclass of SkBitmapDevice, which directs all drawing to the GrGpu owned by
the |
26 * canvas. | 27 * canvas. |
27 */ | 28 */ |
28 class SK_API SkGpuDevice : public SkBitmapDevice { | 29 class SK_API SkGpuDevice : public SkBitmapDevice { |
29 public: | 30 public: |
30 | 31 |
31 /** | 32 /** |
32 * Creates an SkGpuDevice from a GrSurface. This will fail if the surface is
not a render | 33 * Creates an SkGpuDevice from a GrSurface. This will fail if the surface is
not a render |
33 * target. The caller owns a ref on the returned device. | 34 * target. The caller owns a ref on the returned device. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 bool bicubic); | 202 bool bicubic); |
202 void drawTiledBitmap(const SkBitmap& bitmap, | 203 void drawTiledBitmap(const SkBitmap& bitmap, |
203 const SkRect& srcRect, | 204 const SkRect& srcRect, |
204 const SkIRect& clippedSrcRect, | 205 const SkIRect& clippedSrcRect, |
205 const GrTextureParams& params, | 206 const GrTextureParams& params, |
206 const SkPaint& paint, | 207 const SkPaint& paint, |
207 SkCanvas::DrawBitmapRectFlags flags, | 208 SkCanvas::DrawBitmapRectFlags flags, |
208 int tileSize, | 209 int tileSize, |
209 bool bicubic); | 210 bool bicubic); |
210 | 211 |
211 /** | |
212 * Returns non-initialized instance. | |
213 */ | |
214 GrTextContext* getTextContext(); | |
215 | |
216 typedef SkBitmapDevice INHERITED; | 212 typedef SkBitmapDevice INHERITED; |
217 }; | 213 }; |
218 | 214 |
219 #endif | 215 #endif |
OLD | NEW |