OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkGpuDevice_DEFINED | 8 #ifndef SkGpuDevice_DEFINED |
9 #define SkGpuDevice_DEFINED | 9 #define SkGpuDevice_DEFINED |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const
SkPaint&) override; | 116 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, | 117 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S
kRect& dst, |
118 const SkPaint&, SkCanvas::SrcRectConstraint) override; | 118 const SkPaint&, SkCanvas::SrcRectConstraint) override; |
119 | 119 |
120 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect&
center, | 120 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect&
center, |
121 const SkRect& dst, const SkPaint& paint) override; | 121 const SkRect& dst, const SkPaint& paint) override; |
122 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRec
t& center, | 122 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRec
t& center, |
123 const SkRect& dst, const SkPaint& paint) override; | 123 const SkRect& dst, const SkPaint& paint) override; |
124 | 124 |
| 125 void drawImageLattice(const SkDraw&, const SkImage*, const SkCanvas::Lattice
&, |
| 126 const SkRect& dst, const SkPaint&) override; |
| 127 void drawBitmapLattice(const SkDraw&, const SkBitmap&, const SkCanvas::Latti
ce&, |
| 128 const SkRect& dst, const SkPaint&) override; |
| 129 |
125 void drawSpecial(const SkDraw&, SkSpecialImage*, | 130 void drawSpecial(const SkDraw&, SkSpecialImage*, |
126 int left, int top, const SkPaint& paint) override; | 131 int left, int top, const SkPaint& paint) override; |
127 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; | 132 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; |
128 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override; | 133 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override; |
129 sk_sp<SkSpecialImage> snapSpecial() override; | 134 sk_sp<SkSpecialImage> snapSpecial() override; |
130 | 135 |
131 void flush() override; | 136 void flush() override; |
132 | 137 |
133 bool onAccessPixels(SkPixmap*) override; | 138 bool onAccessPixels(SkPixmap*) override; |
134 | 139 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 const SkMatrix& srcToDstMatrix, | 241 const SkMatrix& srcToDstMatrix, |
237 const GrClip&, | 242 const GrClip&, |
238 const SkPaint&); | 243 const SkPaint&); |
239 | 244 |
240 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, | 245 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, |
241 const SkRRect& inner, const SkPaint& paint); | 246 const SkRRect& inner, const SkPaint& paint); |
242 | 247 |
243 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, | 248 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, |
244 const SkRect& dst, const SkPaint&); | 249 const SkRect& dst, const SkPaint&); |
245 | 250 |
| 251 void drawProducerLattice(const SkDraw&, GrTextureProducer*, const SkCanvas::
Lattice& lattice, |
| 252 const SkRect& dst, const SkPaint&); |
| 253 |
246 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 254 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
247 void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&); | 255 void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&); |
248 | 256 |
249 static sk_sp<GrDrawContext> MakeDrawContext(GrContext*, | 257 static sk_sp<GrDrawContext> MakeDrawContext(GrContext*, |
250 SkBudgeted, | 258 SkBudgeted, |
251 const SkImageInfo&, | 259 const SkImageInfo&, |
252 int sampleCount, | 260 int sampleCount, |
253 GrSurfaceOrigin, | 261 GrSurfaceOrigin, |
254 const SkSurfaceProps*); | 262 const SkSurfaceProps*); |
255 | 263 |
256 friend class GrAtlasTextContext; | 264 friend class GrAtlasTextContext; |
257 friend class SkSurface_Gpu; // for access to surfaceProps | 265 friend class SkSurface_Gpu; // for access to surfaceProps |
258 typedef SkBaseDevice INHERITED; | 266 typedef SkBaseDevice INHERITED; |
259 }; | 267 }; |
260 | 268 |
261 #endif | 269 #endif |
OLD | NEW |