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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const SkRect* srcOrNull, const SkRect& dst, | 92 const SkRect* srcOrNull, const SkRect& dst, |
93 const SkPaint& paint, | 93 const SkPaint& paint, |
94 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE
; | 94 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE
; |
95 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, | 95 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, |
96 int x, int y, const SkPaint& paint) SK_OVERRIDE; | 96 int x, int y, const SkPaint& paint) SK_OVERRIDE; |
97 virtual void drawText(const SkDraw&, const void* text, size_t len, | 97 virtual void drawText(const SkDraw&, const void* text, size_t len, |
98 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE; | 98 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE; |
99 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 99 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
100 const SkScalar pos[], int scalarsPerPos, | 100 const SkScalar pos[], int scalarsPerPos, |
101 const SkPoint& offset, const SkPaint&) SK_OVERRIDE; | 101 const SkPoint& offset, const SkPaint&) SK_OVERRIDE; |
| 102 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, |
| 103 const SkPaint& paint, SkDrawFilter* drawFilter) SK
_OVERRIDE; |
102 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 104 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
103 const SkPoint verts[], const SkPoint texs[], | 105 const SkPoint verts[], const SkPoint texs[], |
104 const SkColor colors[], SkXfermode* xmode, | 106 const SkColor colors[], SkXfermode* xmode, |
105 const uint16_t indices[], int indexCount, | 107 const uint16_t indices[], int indexCount, |
106 const SkPaint&) SK_OVERRIDE; | 108 const SkPaint&) SK_OVERRIDE; |
107 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 109 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
108 const SkPaint&) SK_OVERRIDE; | 110 const SkPaint&) SK_OVERRIDE; |
109 | 111 |
110 void flush() SK_OVERRIDE; | 112 void flush() SK_OVERRIDE; |
111 | 113 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 210 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
209 | 211 |
210 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 212 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
211 int sampleCount); | 213 int sampleCount); |
212 | 214 |
213 friend class GrTextContext; | 215 friend class GrTextContext; |
214 typedef SkBaseDevice INHERITED; | 216 typedef SkBaseDevice INHERITED; |
215 }; | 217 }; |
216 | 218 |
217 #endif | 219 #endif |
OLD | NEW |