Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: tools/android/SkAndroidSDKCanvas.h

Issue 2257023003: Plumb drawArc to SkDevice (Closed) Base URL: https://chromium.googlesource.com/skia.git@distance
Patch Set: Address comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/utils/SkShadowPaintFilterCanvas.cpp ('k') | tools/android/SkAndroidSDKCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/utils/SkShadowPaintFilterCanvas.cpp ('k') | tools/android/SkAndroidSDKCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698