| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrContext_DEFINED | 8 #ifndef GrContext_DEFINED |
| 9 #define GrContext_DEFINED | 9 #define GrContext_DEFINED |
| 10 | 10 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 * @param colors optional array of per-vertex colors, supercedes | 481 * @param colors optional array of per-vertex colors, supercedes |
| 482 * the paint's color field. | 482 * the paint's color field. |
| 483 * @param indices optional array of indices. If NULL vertices | 483 * @param indices optional array of indices. If NULL vertices |
| 484 * are drawn non-indexed. | 484 * are drawn non-indexed. |
| 485 * @param indexCount if indices is non-null then this is the | 485 * @param indexCount if indices is non-null then this is the |
| 486 * number of indices. | 486 * number of indices. |
| 487 */ | 487 */ |
| 488 void drawVertices(const GrPaint& paint, | 488 void drawVertices(const GrPaint& paint, |
| 489 GrPrimitiveType primitiveType, | 489 GrPrimitiveType primitiveType, |
| 490 int vertexCount, | 490 int vertexCount, |
| 491 const GrPoint positions[], | 491 const SkPoint positions[], |
| 492 const GrPoint texs[], | 492 const SkPoint texs[], |
| 493 const GrColor colors[], | 493 const GrColor colors[], |
| 494 const uint16_t indices[], | 494 const uint16_t indices[], |
| 495 int indexCount); | 495 int indexCount); |
| 496 | 496 |
| 497 /** | 497 /** |
| 498 * Draws an oval. | 498 * Draws an oval. |
| 499 * | 499 * |
| 500 * @param paint describes how to color pixels. | 500 * @param paint describes how to color pixels. |
| 501 * @param oval the bounding rect of the oval. | 501 * @param oval the bounding rect of the oval. |
| 502 * @param stroke the stroke information (width, style) | 502 * @param stroke the stroke information (width, style) |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 GrTexture* texture() { return fTexture; } | 1071 GrTexture* texture() { return fTexture; } |
| 1072 | 1072 |
| 1073 private: | 1073 private: |
| 1074 GrContext* fContext; | 1074 GrContext* fContext; |
| 1075 GrTexture* fTexture; | 1075 GrTexture* fTexture; |
| 1076 }; | 1076 }; |
| 1077 | 1077 |
| 1078 #endif | 1078 #endif |
| OLD | NEW |