OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 #ifndef SkNWayCanvas_DEFINED | 9 #ifndef SkNWayCanvas_DEFINED |
10 #define SkNWayCanvas_DEFINED | 10 #define SkNWayCanvas_DEFINED |
(...skipping 30 matching lines...) Expand all Loading... |
41 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 41 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
42 const SkRect& dst, | 42 const SkRect& dst, |
43 const SkPaint* paint = NULL) SK_OVERRIDE; | 43 const SkPaint* paint = NULL) SK_OVERRIDE; |
44 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 44 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
45 const SkPaint*) SK_OVERRIDE; | 45 const SkPaint*) SK_OVERRIDE; |
46 virtual void drawVertices(VertexMode vmode, int vertexCount, | 46 virtual void drawVertices(VertexMode vmode, int vertexCount, |
47 const SkPoint vertices[], const SkPoint texs[], | 47 const SkPoint vertices[], const SkPoint texs[], |
48 const SkColor colors[], SkXfermode* xmode, | 48 const SkColor colors[], SkXfermode* xmode, |
49 const uint16_t indices[], int indexCount, | 49 const uint16_t indices[], int indexCount, |
50 const SkPaint&) SK_OVERRIDE; | 50 const SkPaint&) SK_OVERRIDE; |
51 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI
DE; | 51 virtual void drawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 52 const SkPoint texCoords[4], SkXfermode* xmode, |
| 53 const SkPaint& paint) SK_OVERRIDE; |
52 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; | 54 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; |
53 | 55 |
54 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; | 56 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; |
55 | 57 |
56 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 58 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
57 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 59 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
58 virtual void endCommentGroup() SK_OVERRIDE; | 60 virtual void endCommentGroup() SK_OVERRIDE; |
59 | 61 |
60 protected: | 62 protected: |
61 SkTDArray<SkCanvas*> fList; | 63 SkTDArray<SkCanvas*> fList; |
(...skipping 23 matching lines...) Expand all Loading... |
85 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 87 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
86 | 88 |
87 class Iter; | 89 class Iter; |
88 | 90 |
89 private: | 91 private: |
90 typedef SkCanvas INHERITED; | 92 typedef SkCanvas INHERITED; |
91 }; | 93 }; |
92 | 94 |
93 | 95 |
94 #endif | 96 #endif |
OLD | NEW |