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

Side by Side Diff: include/utils/SkPaintFilterCanvas.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 | « include/utils/SkNWayCanvas.h ('k') | src/core/SkCanvas.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 SkPaintFilterCanvas_DEFINED 8 #ifndef SkPaintFilterCanvas_DEFINED
9 #define SkPaintFilterCanvas_DEFINED 9 #define SkPaintFilterCanvas_DEFINED
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 /** 25 /**
26 * The new SkPaintFilterCanvas is configured for forwarding to the 26 * The new SkPaintFilterCanvas is configured for forwarding to the
27 * specified canvas. Also copies the target canvas matrix and clip bounds. 27 * specified canvas. Also copies the target canvas matrix and clip bounds.
28 */ 28 */
29 SkPaintFilterCanvas(SkCanvas* canvas); 29 SkPaintFilterCanvas(SkCanvas* canvas);
30 30
31 enum Type { 31 enum Type {
32 kPaint_Type, 32 kPaint_Type,
33 kPoint_Type, 33 kPoint_Type,
34 kArc_Type,
34 kBitmap_Type, 35 kBitmap_Type,
35 kRect_Type, 36 kRect_Type,
36 kRRect_Type, 37 kRRect_Type,
37 kDRRect_Type, 38 kDRRect_Type,
38 kOval_Type, 39 kOval_Type,
39 kPath_Type, 40 kPath_Type,
40 kPicture_Type, 41 kPicture_Type,
41 kText_Type, 42 kText_Type,
42 kTextBlob_Type, 43 kTextBlob_Type,
43 kVertices_Type, 44 kVertices_Type,
(...skipping 15 matching lines...) Expand all
59 * override the relevant methods (i.e. drawPicture, drawTextBlob). 60 * override the relevant methods (i.e. drawPicture, drawTextBlob).
60 */ 61 */
61 virtual bool onFilter(SkTCopyOnFirstWrite<SkPaint>* paint, Type type) const = 0; 62 virtual bool onFilter(SkTCopyOnFirstWrite<SkPaint>* paint, Type type) const = 0;
62 63
63 void onDrawPaint(const SkPaint&) override; 64 void onDrawPaint(const SkPaint&) override;
64 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 65 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
65 void onDrawRect(const SkRect&, const SkPaint&) override; 66 void onDrawRect(const SkRect&, const SkPaint&) override;
66 void onDrawRRect(const SkRRect&, const SkPaint&) override; 67 void onDrawRRect(const SkRRect&, const SkPaint&) override;
67 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 68 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
68 void onDrawOval(const SkRect&, const SkPaint&) override; 69 void onDrawOval(const SkRect&, const SkPaint&) override;
70 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) over ride;
69 void onDrawPath(const SkPath&, const SkPaint&) override; 71 void onDrawPath(const SkPath&, const SkPaint&) override;
70 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 72 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
71 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 73 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
72 SrcRectConstraint) override; 74 SrcRectConstraint) override;
73 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 75 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
74 const SkPaint*) override; 76 const SkPaint*) override;
75 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 77 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
76 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 78 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
77 const SkPaint*, SrcRectConstraint) override; 79 const SkPaint*, SrcRectConstraint) override;
78 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t, 80 void onDrawImageNine(const SkImage*, const SkIRect& center, const SkRect& ds t,
(...skipping 21 matching lines...) Expand all
100 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 102 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
101 const SkPaint& paint) override; 103 const SkPaint& paint) override;
102 104
103 private: 105 private:
104 class AutoPaintFilter; 106 class AutoPaintFilter;
105 107
106 typedef SkNWayCanvas INHERITED; 108 typedef SkNWayCanvas INHERITED;
107 }; 109 };
108 110
109 #endif 111 #endif
OLDNEW
« no previous file with comments | « include/utils/SkNWayCanvas.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698