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

Side by Side Diff: src/utils/SkDeferredCanvas.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/core/SkRecorder.cpp ('k') | src/utils/SkDeferredCanvas.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 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkDeferredCanvas_DEFINED 9 #ifndef SkDeferredCanvas_DEFINED
10 #define SkDeferredCanvas_DEFINED 10 #define SkDeferredCanvas_DEFINED
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 56 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
57 const SkPaint& paint) override; 57 const SkPaint& paint) override;
58 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], 58 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
59 const SkPoint texCoords[4], SkXfermode* xmode, 59 const SkPoint texCoords[4], SkXfermode* xmode,
60 const SkPaint& paint) override; 60 const SkPaint& paint) override;
61 61
62 void onDrawPaint(const SkPaint&) override; 62 void onDrawPaint(const SkPaint&) override;
63 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 63 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
64 void onDrawRect(const SkRect&, const SkPaint&) override; 64 void onDrawRect(const SkRect&, const SkPaint&) override;
65 void onDrawOval(const SkRect&, const SkPaint&) override; 65 void onDrawOval(const SkRect&, const SkPaint&) override;
66 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) over ride;
66 void onDrawRRect(const SkRRect&, const SkPaint&) override; 67 void onDrawRRect(const SkRRect&, const SkPaint&) override;
67 void onDrawPath(const SkPath&, const SkPaint&) override; 68 void onDrawPath(const SkPath&, const SkPaint&) override;
68 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 69 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
69 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 70 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
70 SrcRectConstraint) override; 71 SrcRectConstraint) override;
71 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override; 72 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) override;
72 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 73 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
73 const SkPaint*, SrcRectConstraint) override; 74 const SkPaint*, SrcRectConstraint) override;
74 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 75 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
75 const SkPaint*) override; 76 const SkPaint*) override;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void flush_translate(SkScalar* x, SkScalar* y, const SkRect& bounds, const S kPaint* = nullptr); 139 void flush_translate(SkScalar* x, SkScalar* y, const SkRect& bounds, const S kPaint* = nullptr);
139 void flush_check(SkRect* bounds, const SkPaint*, unsigned flags = 0); 140 void flush_check(SkRect* bounds, const SkPaint*, unsigned flags = 0);
140 141
141 void internal_flush_translate(SkScalar* x, SkScalar* y, const SkRect* bounds OrNull); 142 void internal_flush_translate(SkScalar* x, SkScalar* y, const SkRect* bounds OrNull);
142 143
143 typedef SkCanvas INHERITED; 144 typedef SkCanvas INHERITED;
144 }; 145 };
145 146
146 147
147 #endif 148 #endif
OLDNEW
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/utils/SkDeferredCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698