| 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 25 matching lines...) Expand all Loading... |
| 36 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 36 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
| 37 const SkRect& dst, const SkPaint* paint, | 37 const SkRect& dst, const SkPaint* paint, |
| 38 DrawBitmapRectFlags flags) SK_OVERRIDE; | 38 DrawBitmapRectFlags flags) SK_OVERRIDE; |
| 39 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | 39 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, |
| 40 const SkPaint*) SK_OVERRIDE; | 40 const SkPaint*) SK_OVERRIDE; |
| 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 drawText(const void* text, size_t byteLength, SkScalar x, | |
| 47 SkScalar y, const SkPaint&) SK_OVERRIDE; | |
| 48 virtual void drawPosText(const void* text, size_t byteLength, | |
| 49 const SkPoint pos[], const SkPaint&) SK_OVERRIDE; | |
| 50 virtual void drawPosTextH(const void* text, size_t byteLength, | |
| 51 const SkScalar xpos[], SkScalar constY, | |
| 52 const SkPaint&) SK_OVERRIDE; | |
| 53 virtual void drawTextOnPath(const void* text, size_t byteLength, | |
| 54 const SkPath& path, const SkMatrix* matrix, | |
| 55 const SkPaint&) SK_OVERRIDE; | |
| 56 virtual void drawPicture(SkPicture&) SK_OVERRIDE; | 46 virtual void drawPicture(SkPicture&) SK_OVERRIDE; |
| 57 virtual void drawVertices(VertexMode vmode, int vertexCount, | 47 virtual void drawVertices(VertexMode vmode, int vertexCount, |
| 58 const SkPoint vertices[], const SkPoint texs[], | 48 const SkPoint vertices[], const SkPoint texs[], |
| 59 const SkColor colors[], SkXfermode* xmode, | 49 const SkColor colors[], SkXfermode* xmode, |
| 60 const uint16_t indices[], int indexCount, | 50 const uint16_t indices[], int indexCount, |
| 61 const SkPaint&) SK_OVERRIDE; | 51 const SkPaint&) SK_OVERRIDE; |
| 62 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; | 52 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; |
| 63 | 53 |
| 64 virtual SkBounder* setBounder(SkBounder*) SK_OVERRIDE; | 54 virtual SkBounder* setBounder(SkBounder*) SK_OVERRIDE; |
| 65 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; | 55 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; |
| 66 | 56 |
| 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; |
| 70 | 60 |
| 71 protected: | 61 protected: |
| 72 SkTDArray<SkCanvas*> fList; | 62 SkTDArray<SkCanvas*> fList; |
| 73 | 63 |
| 74 virtual void willSave(SaveFlags) SK_OVERRIDE; | 64 virtual void willSave(SaveFlags) SK_OVERRIDE; |
| 75 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 65 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
| 76 virtual void willRestore() SK_OVERRIDE; | 66 virtual void willRestore() SK_OVERRIDE; |
| 77 | 67 |
| 78 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 68 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
| 79 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 69 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
| 80 | 70 |
| 81 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 71 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
| 72 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
| 73 const SkPaint&) SK_OVERRIDE; |
| 74 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
| 75 const SkPaint&) SK_OVERRIDE; |
| 76 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
| 77 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
| 78 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
| 79 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
| 82 | 80 |
| 83 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 81 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 84 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 82 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
| 85 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 83 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
| 86 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 84 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
| 87 | 85 |
| 88 class Iter; | 86 class Iter; |
| 89 | 87 |
| 90 private: | 88 private: |
| 91 typedef SkCanvas INHERITED; | 89 typedef SkCanvas INHERITED; |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 | 92 |
| 95 #endif | 93 #endif |
| OLD | NEW |