| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 const GrClip&, | 245 const GrClip&, |
| 246 const SkPaint&); | 246 const SkPaint&); |
| 247 | 247 |
| 248 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, | 248 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, |
| 249 const SkRRect& inner, const SkPaint& paint); | 249 const SkRRect& inner, const SkPaint& paint); |
| 250 | 250 |
| 251 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, | 251 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, |
| 252 const SkRect& dst, const SkPaint&); | 252 const SkRect& dst, const SkPaint&); |
| 253 | 253 |
| 254 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 254 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
| 255 void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&); |
| 255 | 256 |
| 256 static sk_sp<GrDrawContext> CreateDrawContext(GrContext*, | 257 static sk_sp<GrDrawContext> CreateDrawContext(GrContext*, |
| 257 SkBudgeted, | 258 SkBudgeted, |
| 258 const SkImageInfo&, | 259 const SkImageInfo&, |
| 259 int sampleCount, | 260 int sampleCount, |
| 260 const SkSurfaceProps*); | 261 const SkSurfaceProps*); |
| 261 | 262 |
| 262 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, | 263 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, |
| 263 const SkPaint&) override; | 264 const SkPaint&) override; |
| 264 | 265 |
| 265 friend class GrAtlasTextContext; | 266 friend class GrAtlasTextContext; |
| 266 friend class SkSurface_Gpu; // for access to surfaceProps | 267 friend class SkSurface_Gpu; // for access to surfaceProps |
| 267 typedef SkBaseDevice INHERITED; | 268 typedef SkBaseDevice INHERITED; |
| 268 }; | 269 }; |
| 269 | 270 |
| 270 #endif | 271 #endif |
| OLD | NEW |