OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkGpuDevice_DEFINED | 9 #ifndef SkGpuDevice_DEFINED |
10 #define SkGpuDevice_DEFINED | 10 #define SkGpuDevice_DEFINED |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 244 |
245 void drawTextureProducerImpl(GrTextureProducer*, | 245 void drawTextureProducerImpl(GrTextureProducer*, |
246 const SkRect& clippedSrcRect, | 246 const SkRect& clippedSrcRect, |
247 const SkRect& clippedDstRect, | 247 const SkRect& clippedDstRect, |
248 SkCanvas::SrcRectConstraint, | 248 SkCanvas::SrcRectConstraint, |
249 const SkMatrix& viewMatrix, | 249 const SkMatrix& viewMatrix, |
250 const SkMatrix& srcToDstMatrix, | 250 const SkMatrix& srcToDstMatrix, |
251 const GrClip&, | 251 const GrClip&, |
252 const SkPaint&); | 252 const SkPaint&); |
253 | 253 |
| 254 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer, |
| 255 const SkRRect& inner, const SkPaint& paint); |
| 256 |
254 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, | 257 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent
er, |
255 const SkRect& dst, const SkPaint&); | 258 const SkRect& dst, const SkPaint&); |
256 | 259 |
257 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 260 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
258 | 261 |
259 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, | 262 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c
onst SkImageInfo&, |
260 int sampleCount, GrTextureStorageA
llocator); | 263 int sampleCount, GrTextureStorageA
llocator); |
261 | 264 |
262 friend class GrAtlasTextContext; | 265 friend class GrAtlasTextContext; |
263 friend class SkSurface_Gpu; // for access to surfaceProps | 266 friend class SkSurface_Gpu; // for access to surfaceProps |
264 typedef SkBaseDevice INHERITED; | 267 typedef SkBaseDevice INHERITED; |
265 }; | 268 }; |
266 | 269 |
267 #endif | 270 #endif |
OLD | NEW |