| 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 19 matching lines...) Expand all Loading... |
| 30 void reset(SkCanvas* newTarget); | 30 void reset(SkCanvas* newTarget); |
| 31 | 31 |
| 32 protected: | 32 protected: |
| 33 | 33 |
| 34 // FILTERING | 34 // FILTERING |
| 35 | 35 |
| 36 void onDrawPaint(const SkPaint& paint) override; | 36 void onDrawPaint(const SkPaint& paint) override; |
| 37 void onDrawPoints(PointMode pMode, size_t count, const SkPoint pts[], | 37 void onDrawPoints(PointMode pMode, size_t count, const SkPoint pts[], |
| 38 const SkPaint& paint) override; | 38 const SkPaint& paint) override; |
| 39 void onDrawOval(const SkRect& r, const SkPaint& paint) override; | 39 void onDrawOval(const SkRect& r, const SkPaint& paint) override; |
| 40 void onDrawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle,
bool useCenter, |
| 41 const SkPaint& paint) override; |
| 40 void onDrawRect(const SkRect& r, const SkPaint& paint) override; | 42 void onDrawRect(const SkRect& r, const SkPaint& paint) override; |
| 41 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override; | 43 void onDrawRRect(const SkRRect& r, const SkPaint& paint) override; |
| 42 void onDrawPath(const SkPath& path, const SkPaint& paint) override; | 44 void onDrawPath(const SkPath& path, const SkPaint& paint) override; |
| 43 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, | 45 void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, |
| 44 const SkPaint* paint) override; | 46 const SkPaint* paint) override; |
| 45 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, |
| 46 const SkPaint* paint, SkCanvas::SrcRectConstraint) ove
rride; | 48 const SkPaint* paint, SkCanvas::SrcRectConstraint) ove
rride; |
| 47 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 49 void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
| 48 const SkRect& dst, const SkPaint* paint) override; | 50 const SkRect& dst, 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[], |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 104 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
| 103 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 105 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
| 104 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 106 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
| 105 void onDiscard() override; | 107 void onDiscard() override; |
| 106 | 108 |
| 107 protected: | 109 protected: |
| 108 SkCanvas* fProxyTarget; | 110 SkCanvas* fProxyTarget; |
| 109 }; | 111 }; |
| 110 | 112 |
| 111 #endif // SkAndroidSDKCanvas_DEFINED | 113 #endif // SkAndroidSDKCanvas_DEFINED |
| OLD | NEW |