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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 and are handling any looping from the paint, and any effects from the | 252 and are handling any looping from the paint, and any effects from the |
253 DrawFilter. | 253 DrawFilter. |
254 */ | 254 */ |
255 virtual void drawPaint(const SkDraw&, const SkPaint& paint); | 255 virtual void drawPaint(const SkDraw&, const SkPaint& paint); |
256 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 256 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
257 const SkPoint[], const SkPaint& paint); | 257 const SkPoint[], const SkPaint& paint); |
258 virtual void drawRect(const SkDraw&, const SkRect& r, | 258 virtual void drawRect(const SkDraw&, const SkRect& r, |
259 const SkPaint& paint); | 259 const SkPaint& paint); |
260 virtual void drawOval(const SkDraw&, const SkRect& oval, | 260 virtual void drawOval(const SkDraw&, const SkRect& oval, |
261 const SkPaint& paint); | 261 const SkPaint& paint); |
| 262 virtual void drawRRect(const SkDraw&, const SkRRect& rr, |
| 263 const SkPaint& paint); |
| 264 |
262 /** | 265 /** |
263 * If pathIsMutable, then the implementation is allowed to cast path to a | 266 * If pathIsMutable, then the implementation is allowed to cast path to a |
264 * non-const pointer and modify it in place (as an optimization). Canvas | 267 * non-const pointer and modify it in place (as an optimization). Canvas |
265 * may do this to implement helpers such as drawOval, by placing a temp | 268 * may do this to implement helpers such as drawOval, by placing a temp |
266 * path on the stack to hold the representation of the oval. | 269 * path on the stack to hold the representation of the oval. |
267 * | 270 * |
268 * If prePathMatrix is not null, it should logically be applied before any | 271 * If prePathMatrix is not null, it should logically be applied before any |
269 * stroking or other effects. If there are no effects on the paint that | 272 * stroking or other effects. If there are no effects on the paint that |
270 * affect the geometry/rasterization, then the pre matrix can just be | 273 * affect the geometry/rasterization, then the pre matrix can just be |
271 * pre-concated with the current matrix. | 274 * pre-concated with the current matrix. |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 SkDeviceProperties fLeakyProperties; | 461 SkDeviceProperties fLeakyProperties; |
459 | 462 |
460 #ifdef SK_DEBUG | 463 #ifdef SK_DEBUG |
461 bool fAttachedToCanvas; | 464 bool fAttachedToCanvas; |
462 #endif | 465 #endif |
463 | 466 |
464 typedef SkRefCnt INHERITED; | 467 typedef SkRefCnt INHERITED; |
465 }; | 468 }; |
466 | 469 |
467 #endif | 470 #endif |
OLD | NEW |