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

Side by Side Diff: include/core/SkDevice.h

Issue 2257023003: Plumb drawArc to SkDevice (Closed) Base URL: https://chromium.googlesource.com/skia.git@distance
Patch Set: working 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
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 and are handling any looping from the paint, and any effects from the 154 and are handling any looping from the paint, and any effects from the
155 DrawFilter. 155 DrawFilter.
156 */ 156 */
157 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0; 157 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0;
158 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t, 158 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t,
159 const SkPoint[], const SkPaint& paint) = 0; 159 const SkPoint[], const SkPaint& paint) = 0;
160 virtual void drawRect(const SkDraw&, const SkRect& r, 160 virtual void drawRect(const SkDraw&, const SkRect& r,
161 const SkPaint& paint) = 0; 161 const SkPaint& paint) = 0;
162 virtual void drawOval(const SkDraw&, const SkRect& oval, 162 virtual void drawOval(const SkDraw&, const SkRect& oval,
163 const SkPaint& paint) = 0; 163 const SkPaint& paint) = 0;
164 virtual void drawArc(const SkDraw&, const SkRect& oval, SkScalar startAngle,
165 SkScalar sweepAngle, bool useCenter, const SkPaint& pai nt);
164 virtual void drawRRect(const SkDraw&, const SkRRect& rr, 166 virtual void drawRRect(const SkDraw&, const SkRRect& rr,
165 const SkPaint& paint) = 0; 167 const SkPaint& paint) = 0;
166 168
167 // Default impl calls drawPath() 169 // Default impl calls drawPath()
168 virtual void drawDRRect(const SkDraw&, const SkRRect& outer, 170 virtual void drawDRRect(const SkDraw&, const SkRRect& outer,
169 const SkRRect& inner, const SkPaint&); 171 const SkRRect& inner, const SkPaint&);
170 172
171 /** 173 /**
172 * If pathIsMutable, then the implementation is allowed to cast path to a 174 * If pathIsMutable, then the implementation is allowed to cast path to a
173 * non-const pointer and modify it in place (as an optimization). Canvas 175 * non-const pointer and modify it in place (as an optimization). Canvas
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 SkSurfaceProps fSurfaceProps; 375 SkSurfaceProps fSurfaceProps;
374 376
375 #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP 377 #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP
376 SkBitmap fLegacyBitmap; 378 SkBitmap fLegacyBitmap;
377 #endif 379 #endif
378 380
379 typedef SkRefCnt INHERITED; 381 typedef SkRefCnt INHERITED;
380 }; 382 };
381 383
382 #endif 384 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698