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 #ifndef SkProxyCanvas_DEFINED | 8 #ifndef SkProxyCanvas_DEFINED |
9 #define SkProxyCanvas_DEFINED | 9 #define SkProxyCanvas_DEFINED |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 DrawBitmapRectFlags flags) SK_OVERRIDE; | 40 DrawBitmapRectFlags flags) SK_OVERRIDE; |
41 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 41 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
42 const SkPaint* paint = NULL) SK_OVERRIDE; | 42 const SkPaint* paint = NULL) SK_OVERRIDE; |
43 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 43 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
44 const SkPaint* paint = NULL) SK_OVERRIDE; | 44 const SkPaint* paint = NULL) SK_OVERRIDE; |
45 virtual void drawVertices(VertexMode vmode, int vertexCount, | 45 virtual void drawVertices(VertexMode vmode, int vertexCount, |
46 const SkPoint vertices[], const SkPoint texs[], | 46 const SkPoint vertices[], const SkPoint texs[], |
47 const SkColor colors[], SkXfermode* xmode, | 47 const SkColor colors[], SkXfermode* xmode, |
48 const uint16_t indices[], int indexCount, | 48 const uint16_t indices[], int indexCount, |
49 const SkPaint& paint) SK_OVERRIDE; | 49 const SkPaint& paint) SK_OVERRIDE; |
50 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI
DE; | |
51 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; | 50 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; |
52 | 51 |
53 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; | 52 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; |
54 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; | 53 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; |
55 virtual void endCommentGroup() SK_OVERRIDE; | 54 virtual void endCommentGroup() SK_OVERRIDE; |
56 | 55 |
57 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; | 56 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; |
58 | 57 |
59 protected: | 58 protected: |
60 virtual void willSave() SK_OVERRIDE; | 59 virtual void willSave() SK_OVERRIDE; |
61 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 60 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
62 virtual void willRestore() SK_OVERRIDE; | 61 virtual void willRestore() SK_OVERRIDE; |
63 | 62 |
64 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 63 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
65 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 64 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
66 | 65 |
67 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 66 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
68 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 67 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
69 const SkPaint&) SK_OVERRIDE; | 68 const SkPaint&) SK_OVERRIDE; |
70 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 69 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
71 const SkPaint&) SK_OVERRIDE; | 70 const SkPaint&) SK_OVERRIDE; |
72 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 71 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
73 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 72 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
74 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 73 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
75 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 74 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
76 | 75 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 76 const SkPoint texCoords[4], SkXfermode* xmode, |
| 77 const SkPaint& paint) SK_OVERRIDE; |
| 78 |
77 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 79 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
78 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 80 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
79 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 81 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
80 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 82 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
81 | 83 |
82 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 84 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
83 | 85 |
84 private: | 86 private: |
85 SkCanvas* fProxy; | 87 SkCanvas* fProxy; |
86 | 88 |
87 typedef SkCanvas INHERITED; | 89 typedef SkCanvas INHERITED; |
88 }; | 90 }; |
89 | 91 |
90 #endif | 92 #endif |
OLD | NEW |