OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrDrawContext_DEFINED | 8 #ifndef GrDrawContext_DEFINED |
9 #define GrDrawContext_DEFINED | 9 #define GrDrawContext_DEFINED |
10 | 10 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 * @param colors optional array of per-sprite colors, supercedes | 209 * @param colors optional array of per-sprite colors, supercedes |
210 * the paint's color field. | 210 * the paint's color field. |
211 */ | 211 */ |
212 void drawAtlas(const GrClip&, | 212 void drawAtlas(const GrClip&, |
213 const GrPaint& paint, | 213 const GrPaint& paint, |
214 const SkMatrix& viewMatrix, | 214 const SkMatrix& viewMatrix, |
215 int spriteCount, | 215 int spriteCount, |
216 const SkRSXform xform[], | 216 const SkRSXform xform[], |
217 const SkRect texRect[], | 217 const SkRect texRect[], |
218 const SkColor colors[]); | 218 const SkColor colors[]); |
219 | 219 |
| 220 /** |
| 221 * Draws a region. |
| 222 * |
| 223 * @param paint describes how to color pixels |
| 224 * @param viewMatrix transformation matrix |
| 225 * @param region the region to be drawn |
| 226 */ |
| 227 void drawRegion(const GrClip&, |
| 228 const GrPaint& paint, |
| 229 const SkMatrix& viewMatrix, |
| 230 const SkRegion& region); |
| 231 |
220 /** | 232 /** |
221 * Draws an oval. | 233 * Draws an oval. |
222 * | 234 * |
223 * @param paint describes how to color pixels. | 235 * @param paint describes how to color pixels. |
224 * @param viewMatrix transformation matrix | 236 * @param viewMatrix transformation matrix |
225 * @param oval the bounding rect of the oval. | 237 * @param oval the bounding rect of the oval. |
226 * @param style style to apply to the oval. Currently path effects a
re not allowed. | 238 * @param style style to apply to the oval. Currently path effects a
re not allowed. |
227 */ | 239 */ |
228 void drawOval(const GrClip&, | 240 void drawOval(const GrClip&, |
229 const GrPaint& paint, | 241 const GrPaint& paint, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 | 395 |
384 sk_sp<SkColorSpace> fColorSpace; | 396 sk_sp<SkColorSpace> fColorSpace; |
385 SkSurfaceProps fSurfaceProps; | 397 SkSurfaceProps fSurfaceProps; |
386 GrAuditTrail* fAuditTrail; | 398 GrAuditTrail* fAuditTrail; |
387 | 399 |
388 // In debug builds we guard against improper thread handling | 400 // In debug builds we guard against improper thread handling |
389 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 401 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
390 }; | 402 }; |
391 | 403 |
392 #endif | 404 #endif |
OLD | NEW |