| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 SkCanvas_DEFINED | 8 #ifndef SkCanvas_DEFINED |
| 9 #define SkCanvas_DEFINED | 9 #define SkCanvas_DEFINED |
| 10 | 10 |
| (...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 @param indexCount number of entries in the indices array (if not null) | 1048 @param indexCount number of entries in the indices array (if not null) |
| 1049 @param paint Specifies the shader/texture if present. | 1049 @param paint Specifies the shader/texture if present. |
| 1050 */ | 1050 */ |
| 1051 void drawVertices(VertexMode vmode, int vertexCount, | 1051 void drawVertices(VertexMode vmode, int vertexCount, |
| 1052 const SkPoint vertices[], const SkPoint texs[], | 1052 const SkPoint vertices[], const SkPoint texs[], |
| 1053 const SkColor colors[], SkXfermode* xmode, | 1053 const SkColor colors[], SkXfermode* xmode, |
| 1054 const uint16_t indices[], int indexCount, | 1054 const uint16_t indices[], int indexCount, |
| 1055 const SkPaint& paint); | 1055 const SkPaint& paint); |
| 1056 void drawVertices(VertexMode vmode, int vertexCount, | 1056 void drawVertices(VertexMode vmode, int vertexCount, |
| 1057 const SkPoint vertices[], const SkPoint texs[], | 1057 const SkPoint vertices[], const SkPoint texs[], |
| 1058 const SkColor colors[], sk_sp<SkXfermode>& xmode, | 1058 const SkColor colors[], const sk_sp<SkXfermode>& xmode, |
| 1059 const uint16_t indices[], int indexCount, | 1059 const uint16_t indices[], int indexCount, |
| 1060 const SkPaint& paint) { | 1060 const SkPaint& paint) { |
| 1061 this->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode.get
(), | 1061 this->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode.get
(), |
| 1062 indices, indexCount, paint); | 1062 indices, indexCount, paint); |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 /** | 1065 /** |
| 1066 Draw a cubic coons patch | 1066 Draw a cubic coons patch |
| 1067 | 1067 |
| 1068 @param cubic specifies the 4 bounding cubic bezier curves of a patch with c
lockwise order | 1068 @param cubic specifies the 4 bounding cubic bezier curves of a patch with c
lockwise order |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 | 1566 |
| 1567 class SkCanvasClipVisitor { | 1567 class SkCanvasClipVisitor { |
| 1568 public: | 1568 public: |
| 1569 virtual ~SkCanvasClipVisitor(); | 1569 virtual ~SkCanvasClipVisitor(); |
| 1570 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1570 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1571 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1571 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1572 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1572 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1573 }; | 1573 }; |
| 1574 | 1574 |
| 1575 #endif | 1575 #endif |
| OLD | NEW |