OLD | NEW |
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 Loading... |
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 /** By the time this is called we know that abs(sweepAngle) is in the range
[0, 360). */ |
| 165 virtual void drawArc(const SkDraw&, const SkRect& oval, SkScalar startAngle, |
| 166 SkScalar sweepAngle, bool useCenter, const SkPaint& pai
nt); |
164 virtual void drawRRect(const SkDraw&, const SkRRect& rr, | 167 virtual void drawRRect(const SkDraw&, const SkRRect& rr, |
165 const SkPaint& paint) = 0; | 168 const SkPaint& paint) = 0; |
166 | 169 |
167 // Default impl calls drawPath() | 170 // Default impl calls drawPath() |
168 virtual void drawDRRect(const SkDraw&, const SkRRect& outer, | 171 virtual void drawDRRect(const SkDraw&, const SkRRect& outer, |
169 const SkRRect& inner, const SkPaint&); | 172 const SkRRect& inner, const SkPaint&); |
170 | 173 |
171 /** | 174 /** |
172 * If pathIsMutable, then the implementation is allowed to cast path to a | 175 * 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 | 176 * non-const pointer and modify it in place (as an optimization). Canvas |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 SkSurfaceProps fSurfaceProps; | 376 SkSurfaceProps fSurfaceProps; |
374 | 377 |
375 #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP | 378 #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP |
376 SkBitmap fLegacyBitmap; | 379 SkBitmap fLegacyBitmap; |
377 #endif | 380 #endif |
378 | 381 |
379 typedef SkRefCnt INHERITED; | 382 typedef SkRefCnt INHERITED; |
380 }; | 383 }; |
381 | 384 |
382 #endif | 385 #endif |
OLD | NEW |