| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 GrDrawContext* accessDrawContext() override; | 67 GrDrawContext* accessDrawContext() override; |
| 68 | 68 |
| 69 void drawPaint(const SkDraw&, const SkPaint& paint) override; | 69 void drawPaint(const SkDraw&, const SkPaint& paint) override; |
| 70 void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t count, const
SkPoint[], | 70 void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t count, const
SkPoint[], |
| 71 const SkPaint& paint) override; | 71 const SkPaint& paint) override; |
| 72 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override
; | 72 void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint) override
; |
| 73 void drawRRect(const SkDraw&, const SkRRect& r, const SkPaint& paint) overri
de; | 73 void drawRRect(const SkDraw&, const SkRRect& r, const SkPaint& paint) overri
de; |
| 74 void drawDRRect(const SkDraw& draw, const SkRRect& outer, const SkRRect& inn
er, | 74 void drawDRRect(const SkDraw& draw, const SkRRect& outer, const SkRRect& inn
er, |
| 75 const SkPaint& paint) override; | 75 const SkPaint& paint) override; |
| 76 void drawRegion(const SkDraw&, const SkRegion& r, const SkPaint& paint) over
ride; |
| 76 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) overr
ide; | 77 void drawOval(const SkDraw&, const SkRect& oval, const SkPaint& paint) overr
ide; |
| 77 void drawArc(const SkDraw&, const SkRect& oval, SkScalar startAngle, SkScala
r sweepAngle, | 78 void drawArc(const SkDraw&, const SkRect& oval, SkScalar startAngle, SkScala
r sweepAngle, |
| 78 bool useCenter, const SkPaint& paint) override; | 79 bool useCenter, const SkPaint& paint) override; |
| 79 void drawPath(const SkDraw&, const SkPath& path, const SkPaint& paint, | 80 void drawPath(const SkDraw&, const SkPath& path, const SkPaint& paint, |
| 80 const SkMatrix* prePathMatrix, bool pathIsMutable) override; | 81 const SkMatrix* prePathMatrix, bool pathIsMutable) override; |
| 81 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, const SkMatrix&, | 82 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, const SkMatrix&, |
| 82 const SkPaint&) override; | 83 const SkPaint&) override; |
| 83 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect* srcOrNull,
const SkRect& dst, | 84 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect* srcOrNull,
const SkRect& dst, |
| 84 const SkPaint& paint, SkCanvas::SrcRectConstraint) overr
ide; | 85 const SkPaint& paint, SkCanvas::SrcRectConstraint) overr
ide; |
| 85 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, | 86 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 int sampleCount, | 245 int sampleCount, |
| 245 GrSurfaceOrigin, | 246 GrSurfaceOrigin, |
| 246 const SkSurfaceProps*); | 247 const SkSurfaceProps*); |
| 247 | 248 |
| 248 friend class GrAtlasTextContext; | 249 friend class GrAtlasTextContext; |
| 249 friend class SkSurface_Gpu; // for access to surfaceProps | 250 friend class SkSurface_Gpu; // for access to surfaceProps |
| 250 typedef SkBaseDevice INHERITED; | 251 typedef SkBaseDevice INHERITED; |
| 251 }; | 252 }; |
| 252 | 253 |
| 253 #endif | 254 #endif |
| OLD | NEW |