| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 * @param paint describes how to color pixels. | 223 * @param paint describes how to color pixels. |
| 224 * @param viewMatrix transformation matrix | 224 * @param viewMatrix transformation matrix |
| 225 * @param oval the bounding rect of the oval. | 225 * @param oval the bounding rect of the oval. |
| 226 * @param style style to apply to the oval. Currently path effects a
re not allowed. | 226 * @param style style to apply to the oval. Currently path effects a
re not allowed. |
| 227 */ | 227 */ |
| 228 void drawOval(const GrClip&, | 228 void drawOval(const GrClip&, |
| 229 const GrPaint& paint, | 229 const GrPaint& paint, |
| 230 const SkMatrix& viewMatrix, | 230 const SkMatrix& viewMatrix, |
| 231 const SkRect& oval, | 231 const SkRect& oval, |
| 232 const GrStyle& style); | 232 const GrStyle& style); |
| 233 /** |
| 234 * Draws a partial arc of an oval. |
| 235 * |
| 236 * @param paint describes how to color pixels. |
| 237 * @param viewMatrix transformation matrix. |
| 238 * @param oval the bounding rect of the oval. |
| 239 * @param startAngle starting angle in degrees. |
| 240 * @param sweepAngle angle to sweep in degrees. Must be in (-360, 360) |
| 241 * @param useCenter true means that the implied path begins at the oval c
enter, connects as a |
| 242 * line to the point indicated by the start contains the
arc indicated by |
| 243 * the sweep angle. If false the line beginning at the c
enter point is |
| 244 * omitted. |
| 245 * @param style style to apply to the oval. |
| 246 */ |
| 247 void drawArc(const GrClip&, |
| 248 const GrPaint& paint, |
| 249 const SkMatrix& viewMatrix, |
| 250 const SkRect& oval, |
| 251 SkScalar startAngle, |
| 252 SkScalar sweepAngle, |
| 253 bool useCenter, |
| 254 const GrStyle& style); |
| 233 | 255 |
| 234 /** | 256 /** |
| 235 * Draw the image as a set of rects, specified by |iter|. | 257 * Draw the image as a set of rects, specified by |iter|. |
| 236 */ | 258 */ |
| 237 void drawImageLattice(const GrClip&, | 259 void drawImageLattice(const GrClip&, |
| 238 const GrPaint& paint, | 260 const GrPaint& paint, |
| 239 const SkMatrix& viewMatrix, | 261 const SkMatrix& viewMatrix, |
| 240 int imageWidth, | 262 int imageWidth, |
| 241 int imageHeight, | 263 int imageHeight, |
| 242 std::unique_ptr<SkLatticeIter> iter, | 264 std::unique_ptr<SkLatticeIter> iter, |
| 243 const SkRect& dst); | 265 const SkRect& dst); |
| 244 | 266 |
| 245 /** | 267 /** |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 383 |
| 362 sk_sp<SkColorSpace> fColorSpace; | 384 sk_sp<SkColorSpace> fColorSpace; |
| 363 SkSurfaceProps fSurfaceProps; | 385 SkSurfaceProps fSurfaceProps; |
| 364 GrAuditTrail* fAuditTrail; | 386 GrAuditTrail* fAuditTrail; |
| 365 | 387 |
| 366 // In debug builds we guard against improper thread handling | 388 // In debug builds we guard against improper thread handling |
| 367 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 389 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
| 368 }; | 390 }; |
| 369 | 391 |
| 370 #endif | 392 #endif |
| OLD | NEW |