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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 virtual void drawPosText(const SkDraw&, const void* text, size_t len, | 104 virtual void drawPosText(const SkDraw&, const void* text, size_t len, |
105 const SkScalar pos[], int scalarsPerPos, | 105 const SkScalar pos[], int scalarsPerPos, |
106 const SkPoint& offset, const SkPaint&) override; | 106 const SkPoint& offset, const SkPaint&) override; |
107 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, | 107 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc
alar y, |
108 const SkPaint& paint, SkDrawFilter* drawFilter) ov
erride; | 108 const SkPaint& paint, SkDrawFilter* drawFilter) ov
erride; |
109 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, | 109 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou
nt, |
110 const SkPoint verts[], const SkPoint texs[], | 110 const SkPoint verts[], const SkPoint texs[], |
111 const SkColor colors[], SkXfermode* xmode, | 111 const SkColor colors[], SkXfermode* xmode, |
112 const uint16_t indices[], int indexCount, | 112 const uint16_t indices[], int indexCount, |
113 const SkPaint&) override; | 113 const SkPaint&) override; |
| 114 void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[], const
SkRect[], |
| 115 const SkColor[], int count, SkXfermode::Mode, const SkPai
nt&) override; |
114 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 116 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
115 const SkPaint&) override; | 117 const SkPaint&) override; |
116 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const
SkPaint&) override; | 118 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const
SkPaint&) override; |
117 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S
kRect& dst, | 119 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S
kRect& dst, |
118 const SkPaint&) override; | 120 const SkPaint&) override; |
119 | 121 |
120 void flush() override; | 122 void flush() override; |
121 | 123 |
122 void onAttachToCanvas(SkCanvas* canvas) override; | 124 void onAttachToCanvas(SkCanvas* canvas) override; |
123 void onDetachFromCanvas() override; | 125 void onDetachFromCanvas() override; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 224 |
223 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 225 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
224 int sampleCount); | 226 int sampleCount); |
225 | 227 |
226 friend class GrAtlasTextContext; | 228 friend class GrAtlasTextContext; |
227 friend class SkSurface_Gpu; // for access to surfaceProps | 229 friend class SkSurface_Gpu; // for access to surfaceProps |
228 typedef SkBaseDevice INHERITED; | 230 typedef SkBaseDevice INHERITED; |
229 }; | 231 }; |
230 | 232 |
231 #endif | 233 #endif |
OLD | NEW |