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 28 matching lines...) Expand all Loading... |
39 void onDrawOval(const SkRect& r, const SkPaint& paint) override; | 39 void onDrawOval(const SkRect& r, const SkPaint& paint) override; |
40 void onDrawRect(const SkRect& r, const SkPaint& paint) override; | 40 void onDrawRect(const SkRect& r, const SkPaint& paint) override; |
41 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override; | 41 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override; |
42 void onDrawPath(const SkPath& path, const SkPaint& paint) override; | 42 void onDrawPath(const SkPath& path, const SkPaint& paint) override; |
43 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 43 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
44 const SkPaint* paint) override; | 44 const SkPaint* paint) override; |
45 void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRec
t& dst, | 45 void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRec
t& dst, |
46 const SkPaint* paint, SkCanvas::SrcRectConstraint) ove
rride; | 46 const SkPaint* paint, SkCanvas::SrcRectConstraint) ove
rride; |
47 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 47 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
48 const SkRect& dst, const SkPaint* paint) override; | 48 const SkRect& dst, const SkPaint* paint) override; |
| 49 void onDrawSprite(const SkBitmap& bitmap, int left, int top, |
| 50 const SkPaint* paint) override; |
49 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice
s[], | 51 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice
s[], |
50 const SkPoint texs[], const SkColor colors[], SkXfermode
* xMode, | 52 const SkPoint texs[], const SkColor colors[], SkXfermode
* xMode, |
51 const uint16_t indices[], int indexCount, | 53 const uint16_t indices[], int indexCount, |
52 const SkPaint& paint) override; | 54 const SkPaint& paint) override; |
53 | 55 |
54 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, | 56 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, |
55 const SkPaint& paint) override; | 57 const SkPaint& paint) override; |
56 | 58 |
57 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, |
58 const SkPaint& paint) override; | 60 const SkPaint& paint) override; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 103 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
102 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 104 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
103 void onDiscard() override; | 105 void onDiscard() override; |
104 | 106 |
105 protected: | 107 protected: |
106 SkCanvas* fProxyTarget; | 108 SkCanvas* fProxyTarget; |
107 }; | 109 }; |
108 | 110 |
109 #endif // SkAndroidSDKCanvas_DEFINED | 111 #endif // SkAndroidSDKCanvas_DEFINED |
110 | 112 |
OLD | NEW |