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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 263 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
264 void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&); | 264 void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&); |
265 | 265 |
266 static sk_sp<GrDrawContext> CreateDrawContext(GrContext*, | 266 static sk_sp<GrDrawContext> CreateDrawContext(GrContext*, |
267 SkBudgeted, | 267 SkBudgeted, |
268 const SkImageInfo&, | 268 const SkImageInfo&, |
269 int sampleCount, | 269 int sampleCount, |
270 const SkSurfaceProps*); | 270 const SkSurfaceProps*); |
271 | 271 |
272 void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, int x, int y, | |
273 const SkPaint&) override; | |
274 | |
275 friend class GrAtlasTextContext; | 272 friend class GrAtlasTextContext; |
276 friend class SkSurface_Gpu; // for access to surfaceProps | 273 friend class SkSurface_Gpu; // for access to surfaceProps |
277 typedef SkBaseDevice INHERITED; | 274 typedef SkBaseDevice INHERITED; |
278 }; | 275 }; |
279 | 276 |
280 #endif | 277 #endif |
OLD | NEW |