OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 SkNulCanvas_DEFINED | 8 #ifndef SkNulCanvas_DEFINED |
9 #define SkNulCanvas_DEFINED | 9 #define SkNulCanvas_DEFINED |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 40 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
41 const SkRect& dst, | 41 const SkRect& dst, |
42 const SkPaint* paint, | 42 const SkPaint* paint, |
43 DrawBitmapRectFlags flags) SK_OVERRIDE {} | 43 DrawBitmapRectFlags flags) SK_OVERRIDE {} |
44 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 44 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
45 const SkPaint* paint = NULL) SK_OVERRIDE {} | 45 const SkPaint* paint = NULL) SK_OVERRIDE {} |
46 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 46 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
47 const SkRect& dst, const SkPaint* paint = NULL)
SK_OVERRIDE {} | 47 const SkRect& dst, const SkPaint* paint = NULL)
SK_OVERRIDE {} |
48 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 48 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
49 const SkPaint* paint = NULL) SK_OVERRIDE {} | 49 const SkPaint* paint = NULL) SK_OVERRIDE {} |
50 virtual void drawText(const void* text, size_t byteLength, SkScalar x, | |
51 SkScalar y, const SkPaint& paint) SK_OVERRIDE {} | |
52 virtual void drawPosText(const void* text, size_t byteLength, | |
53 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE {} | |
54 virtual void drawPosTextH(const void* text, size_t byteLength, | |
55 const SkScalar xpos[], SkScalar constY, | |
56 const SkPaint& paint) SK_OVERRIDE {} | |
57 virtual void drawTextOnPath(const void* text, size_t byteLength, | |
58 const SkPath& path, const SkMatrix* matrix, | |
59 const SkPaint& paint) SK_OVERRIDE {} | |
60 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE {} | 50 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE {} |
61 virtual void drawVertices(VertexMode vmode, int vertexCount, | 51 virtual void drawVertices(VertexMode vmode, int vertexCount, |
62 const SkPoint vertices[], const SkPoint texs[], | 52 const SkPoint vertices[], const SkPoint texs[], |
63 const SkColor colors[], SkXfermode* xmode, | 53 const SkColor colors[], SkXfermode* xmode, |
64 const uint16_t indices[], int indexCount, | 54 const uint16_t indices[], int indexCount, |
65 const SkPaint& paint) SK_OVERRIDE {} | 55 const SkPaint& paint) SK_OVERRIDE {} |
66 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} | 56 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} |
67 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} | 57 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} |
68 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} | 58 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} |
69 virtual void endCommentGroup() SK_OVERRIDE {} | 59 virtual void endCommentGroup() SK_OVERRIDE {} |
(...skipping 22 matching lines...) Expand all Loading... |
92 protected: | 82 protected: |
93 virtual SkCanvas* canvasForDrawIter() {return NULL;} | 83 virtual SkCanvas* canvasForDrawIter() {return NULL;} |
94 virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;} | 84 virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;} |
95 | 85 |
96 virtual SaveLayerStrategy willSaveLayer(const SkRect* bounds, const SkPaint*
paint, | 86 virtual SaveLayerStrategy willSaveLayer(const SkRect* bounds, const SkPaint*
paint, |
97 SaveFlags flags) SK_OVERRIDE { | 87 SaveFlags flags) SK_OVERRIDE { |
98 this->INHERITED::willSaveLayer(bounds, paint, flags); | 88 this->INHERITED::willSaveLayer(bounds, paint, flags); |
99 return kNoLayer_SaveLayerStrategy; | 89 return kNoLayer_SaveLayerStrategy; |
100 } | 90 } |
101 | 91 |
| 92 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, |
| 93 SkScalar y, const SkPaint& paint) SK_OVERRIDE {} |
| 94 virtual void onDrawPosText(const void* text, size_t byteLength, |
| 95 const SkPoint pos[], const SkPaint& paint) SK_OVERR
IDE {} |
| 96 virtual void onDrawPosTextH(const void* text, size_t byteLength, |
| 97 const SkScalar xpos[], SkScalar constY, |
| 98 const SkPaint& paint) SK_OVERRIDE {} |
| 99 virtual void onDrawTextOnPath(const void* text, size_t byteLength, |
| 100 const SkPath& path, const SkMatrix* matrix, |
| 101 const SkPaint& paint) SK_OVERRIDE {} |
| 102 |
102 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} | 103 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} |
103 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE {} | 104 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE {} |
104 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} | 105 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE {} |
105 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} | 106 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} |
106 | 107 |
107 private: | 108 private: |
108 typedef SkCanvas INHERITED; | 109 typedef SkCanvas INHERITED; |
109 }; | 110 }; |
110 | 111 |
111 #endif // SkNulCanvas_DEFINED | 112 #endif // SkNulCanvas_DEFINED |
OLD | NEW |