| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 The Android Open Source Project |
| 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 | 9 |
| 10 #ifndef SkDevice_DEFINED | 10 #ifndef SkDevice_DEFINED |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0; | 230 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0; |
| 231 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 231 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
| 232 const SkPoint[], const SkPaint& paint) = 0; | 232 const SkPoint[], const SkPaint& paint) = 0; |
| 233 virtual void drawRect(const SkDraw&, const SkRect& r, | 233 virtual void drawRect(const SkDraw&, const SkRect& r, |
| 234 const SkPaint& paint) = 0; | 234 const SkPaint& paint) = 0; |
| 235 virtual void drawOval(const SkDraw&, const SkRect& oval, | 235 virtual void drawOval(const SkDraw&, const SkRect& oval, |
| 236 const SkPaint& paint) = 0; | 236 const SkPaint& paint) = 0; |
| 237 virtual void drawRRect(const SkDraw&, const SkRRect& rr, | 237 virtual void drawRRect(const SkDraw&, const SkRRect& rr, |
| 238 const SkPaint& paint) = 0; | 238 const SkPaint& paint) = 0; |
| 239 | 239 |
| 240 // Default impl calls drawPath() |
| 241 virtual void drawDRRect(const SkDraw&, const SkRRect& outer, |
| 242 const SkRRect& inner, const SkPaint&); |
| 243 |
| 240 /** | 244 /** |
| 241 * If pathIsMutable, then the implementation is allowed to cast path to a | 245 * If pathIsMutable, then the implementation is allowed to cast path to a |
| 242 * non-const pointer and modify it in place (as an optimization). Canvas | 246 * non-const pointer and modify it in place (as an optimization). Canvas |
| 243 * may do this to implement helpers such as drawOval, by placing a temp | 247 * may do this to implement helpers such as drawOval, by placing a temp |
| 244 * path on the stack to hold the representation of the oval. | 248 * path on the stack to hold the representation of the oval. |
| 245 * | 249 * |
| 246 * If prePathMatrix is not null, it should logically be applied before any | 250 * If prePathMatrix is not null, it should logically be applied before any |
| 247 * stroking or other effects. If there are no effects on the paint that | 251 * stroking or other effects. If there are no effects on the paint that |
| 248 * affect the geometry/rasterization, then the pre matrix can just be | 252 * affect the geometry/rasterization, then the pre matrix can just be |
| 249 * pre-concated with the current matrix. | 253 * pre-concated with the current matrix. |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 SkMetaData* fMetaData; | 441 SkMetaData* fMetaData; |
| 438 | 442 |
| 439 #ifdef SK_DEBUG | 443 #ifdef SK_DEBUG |
| 440 bool fAttachedToCanvas; | 444 bool fAttachedToCanvas; |
| 441 #endif | 445 #endif |
| 442 | 446 |
| 443 typedef SkRefCnt INHERITED; | 447 typedef SkRefCnt INHERITED; |
| 444 }; | 448 }; |
| 445 | 449 |
| 446 #endif | 450 #endif |
| OLD | NEW |