| 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 | 9 |
| 10 #ifndef GrContext_DEFINED | 10 #ifndef GrContext_DEFINED |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 * @param dstMatrix Optional matrix to transform dstRect. Applied before
context's matrix. | 403 * @param dstMatrix Optional matrix to transform dstRect. Applied before
context's matrix. |
| 404 * @param localMatrix Optional matrix to transform localRect. | 404 * @param localMatrix Optional matrix to transform localRect. |
| 405 */ | 405 */ |
| 406 void drawRectToRect(const GrPaint& paint, | 406 void drawRectToRect(const GrPaint& paint, |
| 407 const GrRect& dstRect, | 407 const GrRect& dstRect, |
| 408 const GrRect& localRect, | 408 const GrRect& localRect, |
| 409 const SkMatrix* dstMatrix = NULL, | 409 const SkMatrix* dstMatrix = NULL, |
| 410 const SkMatrix* localMatrix = NULL); | 410 const SkMatrix* localMatrix = NULL); |
| 411 | 411 |
| 412 /** | 412 /** |
| 413 * Draw a roundrect using a paint. |
| 414 * |
| 415 * @param paint describes how to color pixels. |
| 416 * @param rrect the roundrect to draw |
| 417 * @param stroke the stroke information (width, join, cap) |
| 418 */ |
| 419 void drawRRect(const GrPaint& paint, |
| 420 const SkRRect& rrect, |
| 421 const SkStrokeRec& stroke); |
| 422 |
| 423 /** |
| 413 * Draws a path. | 424 * Draws a path. |
| 414 * | 425 * |
| 415 * @param paint describes how to color pixels. | 426 * @param paint describes how to color pixels. |
| 416 * @param path the path to draw | 427 * @param path the path to draw |
| 417 * @param stroke the stroke information (width, join, cap) | 428 * @param stroke the stroke information (width, join, cap) |
| 418 */ | 429 */ |
| 419 void drawPath(const GrPaint& paint, const SkPath& path, const SkStrokeRec& s
troke); | 430 void drawPath(const GrPaint& paint, const SkPath& path, const SkStrokeRec& s
troke); |
| 420 | 431 |
| 421 /** | 432 /** |
| 422 * Draws vertices with a paint. | 433 * Draws vertices with a paint. |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 } | 1011 } |
| 1001 | 1012 |
| 1002 GrTexture* texture() { return fTexture; } | 1013 GrTexture* texture() { return fTexture; } |
| 1003 | 1014 |
| 1004 private: | 1015 private: |
| 1005 GrContext* fContext; | 1016 GrContext* fContext; |
| 1006 GrTexture* fTexture; | 1017 GrTexture* fTexture; |
| 1007 }; | 1018 }; |
| 1008 | 1019 |
| 1009 #endif | 1020 #endif |
| OLD | NEW |