| 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 GrDrawTarget_DEFINED | 10 #ifndef GrDrawTarget_DEFINED |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 const GrRect* localRect, | 348 const GrRect* localRect, |
| 349 const SkMatrix* localMatrix) { | 349 const SkMatrix* localMatrix) { |
| 350 AutoGeometryPush agp(this); | 350 AutoGeometryPush agp(this); |
| 351 this->onDrawRect(rect, matrix, localRect, localMatrix); | 351 this->onDrawRect(rect, matrix, localRect, localMatrix); |
| 352 } | 352 } |
| 353 | 353 |
| 354 /** | 354 /** |
| 355 * Helper for drawRect when the caller doesn't need separate local rects or
matrices. | 355 * Helper for drawRect when the caller doesn't need separate local rects or
matrices. |
| 356 */ | 356 */ |
| 357 void drawSimpleRect(const GrRect& rect, const SkMatrix* matrix = NULL) { | 357 void drawSimpleRect(const GrRect& rect, const SkMatrix* matrix = NULL) { |
| 358 drawRect(rect, matrix, NULL, NULL); | 358 this->drawRect(rect, matrix, NULL, NULL); |
| 359 } | 359 } |
| 360 void drawSimpleRect(const GrIRect& irect, const SkMatrix* matrix = NULL) { | 360 void drawSimpleRect(const GrIRect& irect, const SkMatrix* matrix = NULL) { |
| 361 SkRect rect = SkRect::MakeFromIRect(irect); | 361 SkRect rect = SkRect::MakeFromIRect(irect); |
| 362 this->drawRect(rect, matrix, NULL, NULL); | 362 this->drawRect(rect, matrix, NULL, NULL); |
| 363 } | 363 } |
| 364 | 364 |
| 365 /** | 365 /** |
| 366 * This call is used to draw multiple instances of some geometry with a | 366 * This call is used to draw multiple instances of some geometry with a |
| 367 * given number of vertices (V) and indices (I) per-instance. The indices in | 367 * given number of vertices (V) and indices (I) per-instance. The indices in |
| 368 * the index source must have the form i[k+I] == i[k] + V. Also, all indices | 368 * the index source must have the form i[k+I] == i[k] + V. Also, all indices |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 const GrClipData* fClip; | 846 const GrClipData* fClip; |
| 847 GrDrawState* fDrawState; | 847 GrDrawState* fDrawState; |
| 848 GrDrawState fDefaultDraw
State; | 848 GrDrawState fDefaultDraw
State; |
| 849 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar
get. | 849 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar
get. |
| 850 GrContext* fContext; | 850 GrContext* fContext; |
| 851 | 851 |
| 852 typedef GrRefCnt INHERITED; | 852 typedef GrRefCnt INHERITED; |
| 853 }; | 853 }; |
| 854 | 854 |
| 855 #endif | 855 #endif |
| OLD | NEW |