| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 SkAndroidSDKCanvas_DEFINED | 8 #ifndef SkAndroidSDKCanvas_DEFINED |
| 9 #define SkAndroidSDKCanvas_DEFINED | 9 #define SkAndroidSDKCanvas_DEFINED |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void onDrawRect(const SkRect& r, const SkPaint& paint) override; | 42 void onDrawRect(const SkRect& r, const SkPaint& paint) override; |
| 43 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override; | 43 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override; |
| 44 void onDrawPath(const SkPath& path, const SkPaint& paint) override; | 44 void onDrawPath(const SkPath& path, const SkPaint& paint) override; |
| 45 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 45 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
| 46 const SkPaint* paint) override; | 46 const SkPaint* paint) override; |
| 47 void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRec
t& dst, | 47 void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRec
t& dst, |
| 48 const SkPaint* paint, SkCanvas::SrcRectConstraint) ove
rride; | 48 const SkPaint* paint, SkCanvas::SrcRectConstraint) ove
rride; |
| 49 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 49 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
| 50 const SkRect& dst, const SkPaint* paint) override; | 50 const SkRect& dst, const SkPaint* paint) override; |
| 51 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice
s[], | 51 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice
s[], |
| 52 const SkPoint texs[], const SkColor colors[], SkXfermode
* xMode, | 52 const SkPoint texs[], const SkColor colors[], SK_XFERMOD
E_PARAM xMode, |
| 53 const uint16_t indices[], int indexCount, | 53 const uint16_t indices[], int indexCount, |
| 54 const SkPaint& paint) override; | 54 const SkPaint& paint) override; |
| 55 | 55 |
| 56 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, | 56 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, |
| 57 const SkPaint& paint) override; | 57 const SkPaint& paint) override; |
| 58 | 58 |
| 59 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, | 59 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
| 60 const SkPaint& paint) override; | 60 const SkPaint& paint) override; |
| 61 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], | 61 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
| 62 const SkPaint& paint) override; | 62 const SkPaint& paint) override; |
| 63 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], | 63 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos
[], |
| 64 SkScalar constY, const SkPaint& paint) override; | 64 SkScalar constY, const SkPaint& paint) override; |
| 65 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, | 65 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat
h, |
| 66 const SkMatrix* matrix, const SkPaint& paint) override
; | 66 const SkMatrix* matrix, const SkPaint& paint) override
; |
| 67 void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform
xform[], | 67 void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform
xform[], |
| 68 const SkRect* cull, const SkPaint& paint) override; | 68 const SkRect* cull, const SkPaint& paint) override; |
| 69 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, | 69 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, |
| 70 const SkPaint& paint) override; | 70 const SkPaint& paint) override; |
| 71 | 71 |
| 72 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], | 72 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 73 const SkPoint texCoords[4], SkXfermode* xmode, | 73 const SkPoint texCoords[4], SK_XFERMODE_PARAM xmode, |
| 74 const SkPaint& paint) override; | 74 const SkPaint& paint) override; |
| 75 | 75 |
| 76 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e; | 76 void onDrawImage(const SkImage*, SkScalar, SkScalar, const SkPaint*) overrid
e; |
| 77 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkP
aint*, | 77 void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkP
aint*, |
| 78 SrcRectConstraint) override; | 78 SrcRectConstraint) override; |
| 79 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 79 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
| 80 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], | 80 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], |
| 81 const SkColor[], int count, SkXfermode::Mode, | 81 const SkColor[], int count, SK_XFERMODE_MODE_PARAM, |
| 82 const SkRect* cull, const SkPaint*) override; | 82 const SkRect* cull, const SkPaint*) override; |
| 83 void onDrawImageNine(const SkImage*, const SkIRect& center, | 83 void onDrawImageNine(const SkImage*, const SkIRect& center, |
| 84 const SkRect& dst, const SkPaint*) override; | 84 const SkRect& dst, const SkPaint*) override; |
| 85 | 85 |
| 86 // PASS THROUGH | 86 // PASS THROUGH |
| 87 | 87 |
| 88 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; | 88 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; |
| 89 SkISize getBaseLayerSize() const override; | 89 SkISize getBaseLayerSize() const override; |
| 90 bool getClipBounds(SkRect*) const override; | 90 bool getClipBounds(SkRect*) const override; |
| 91 bool getClipDeviceBounds(SkIRect*) const override; | 91 bool getClipDeviceBounds(SkIRect*) const override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 104 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override; | 104 void onClipRRect(const SkRRect&, ClipOp, ClipEdgeStyle) override; |
| 105 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override; | 105 void onClipPath(const SkPath&, ClipOp, ClipEdgeStyle) override; |
| 106 void onClipRegion(const SkRegion&, ClipOp) override; | 106 void onClipRegion(const SkRegion&, ClipOp) override; |
| 107 void onDiscard() override; | 107 void onDiscard() override; |
| 108 | 108 |
| 109 protected: | 109 protected: |
| 110 SkCanvas* fProxyTarget; | 110 SkCanvas* fProxyTarget; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif // SkAndroidSDKCanvas_DEFINED | 113 #endif // SkAndroidSDKCanvas_DEFINED |
| OLD | NEW |