| 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 | |
| 130 void drawSpecial(const SkDraw&, SkSpecialImage*, | 125 void drawSpecial(const SkDraw&, SkSpecialImage*, |
| 131 int left, int top, const SkPaint& paint) override; | 126 int left, int top, const SkPaint& paint) override; |
| 132 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; | 127 sk_sp<SkSpecialImage> makeSpecial(const SkBitmap&) override; |
| 133 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override; | 128 sk_sp<SkSpecialImage> makeSpecial(const SkImage*) override; |
| 134 sk_sp<SkSpecialImage> snapSpecial() override; | 129 sk_sp<SkSpecialImage> snapSpecial() override; |
| 135 | 130 |
| 136 void flush() override; | 131 void flush() override; |
| 137 | 132 |
| 138 bool onAccessPixels(SkPixmap*) override; | 133 bool onAccessPixels(SkPixmap*) override; |
| 139 | 134 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 const SkMatrix& srcToDstMatrix, | 236 const SkMatrix& srcToDstMatrix, |
| 242 const GrClip&, | 237 const GrClip&, |
| 243 const SkPaint&); | 238 const SkPaint&); |
| 244 | 239 |
| 245 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, | 240 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, |
| 246 const SkRRect& inner, const SkPaint& paint); | 241 const SkRRect& inner, const SkPaint& paint); |
| 247 | 242 |
| 248 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, | 243 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, |
| 249 const SkRect& dst, const SkPaint&); | 244 const SkRect& dst, const SkPaint&); |
| 250 | 245 |
| 251 void drawProducerLattice(const SkDraw&, GrTextureProducer*, const SkCanvas::
Lattice& lattice, | |
| 252 const SkRect& dst, const SkPaint&); | |
| 253 | |
| 254 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 246 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
| 255 void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&); | 247 void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&); |
| 256 | 248 |
| 257 static sk_sp<GrDrawContext> MakeDrawContext(GrContext*, | 249 static sk_sp<GrDrawContext> MakeDrawContext(GrContext*, |
| 258 SkBudgeted, | 250 SkBudgeted, |
| 259 const SkImageInfo&, | 251 const SkImageInfo&, |
| 260 int sampleCount, | 252 int sampleCount, |
| 261 GrSurfaceOrigin, | 253 GrSurfaceOrigin, |
| 262 const SkSurfaceProps*); | 254 const SkSurfaceProps*); |
| 263 | 255 |
| 264 friend class GrAtlasTextContext; | 256 friend class GrAtlasTextContext; |
| 265 friend class SkSurface_Gpu; // for access to surfaceProps | 257 friend class SkSurface_Gpu; // for access to surfaceProps |
| 266 typedef SkBaseDevice INHERITED; | 258 typedef SkBaseDevice INHERITED; |
| 267 }; | 259 }; |
| 268 | 260 |
| 269 #endif | 261 #endif |
| OLD | NEW |