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; | |
51 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice
s[], | 49 void onDrawVertices(VertexMode vMode, int vertexCount, const SkPoint vertice
s[], |
52 const SkPoint texs[], const SkColor colors[], SkXfermode
* xMode, | 50 const SkPoint texs[], const SkColor colors[], SkXfermode
* xMode, |
53 const uint16_t indices[], int indexCount, | 51 const uint16_t indices[], int indexCount, |
54 const SkPaint& paint) override; | 52 const SkPaint& paint) override; |
55 | 53 |
56 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, | 54 void onDrawDRRect(const SkRRect& outer, const SkRRect& inner, |
57 const SkPaint& paint) override; | 55 const SkPaint& paint) override; |
58 | 56 |
59 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, | 57 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
60 const SkPaint& paint) override; | 58 const SkPaint& paint) override; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
104 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 102 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
105 void onDiscard() override; | 103 void onDiscard() override; |
106 | 104 |
107 protected: | 105 protected: |
108 SkCanvas* fProxyTarget; | 106 SkCanvas* fProxyTarget; |
109 }; | 107 }; |
110 | 108 |
111 #endif // SkAndroidSDKCanvas_DEFINED | 109 #endif // SkAndroidSDKCanvas_DEFINED |
112 | 110 |
OLD | NEW |