OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 SKDRAWCOMMAND_H_ | 9 #ifndef SKDRAWCOMMAND_H_ |
10 #define SKDRAWCOMMAND_H_ | 10 #define SKDRAWCOMMAND_H_ |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 SkDrawRRectCommand(const SkRRect& rrect, const SkPaint& paint); | 422 SkDrawRRectCommand(const SkRRect& rrect, const SkPaint& paint); |
423 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 423 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
424 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; | 424 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; |
425 private: | 425 private: |
426 SkRRect fRRect; | 426 SkRRect fRRect; |
427 SkPaint fPaint; | 427 SkPaint fPaint; |
428 | 428 |
429 typedef SkDrawCommand INHERITED; | 429 typedef SkDrawCommand INHERITED; |
430 }; | 430 }; |
431 | 431 |
| 432 class SkDrawDRRectCommand : public SkDrawCommand { |
| 433 public: |
| 434 SkDrawDRRectCommand(const SkRRect& outer, const SkRRect& inner, |
| 435 const SkPaint& paint); |
| 436 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 437 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; |
| 438 private: |
| 439 SkRRect fOuter; |
| 440 SkRRect fInner; |
| 441 SkPaint fPaint; |
| 442 |
| 443 typedef SkDrawCommand INHERITED; |
| 444 }; |
| 445 |
432 class SkDrawSpriteCommand : public SkDrawCommand { | 446 class SkDrawSpriteCommand : public SkDrawCommand { |
433 public: | 447 public: |
434 SkDrawSpriteCommand(const SkBitmap& bitmap, int left, int top, const SkPaint
* paint); | 448 SkDrawSpriteCommand(const SkBitmap& bitmap, int left, int top, const SkPaint
* paint); |
435 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 449 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
436 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; | 450 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; |
437 private: | 451 private: |
438 SkBitmap fBitmap; | 452 SkBitmap fBitmap; |
439 int fLeft; | 453 int fLeft; |
440 int fTop; | 454 int fTop; |
441 SkPaint fPaint; | 455 SkPaint fPaint; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 SkScalar y() const { return fDy; } | 565 SkScalar y() const { return fDy; } |
552 | 566 |
553 private: | 567 private: |
554 SkScalar fDx; | 568 SkScalar fDx; |
555 SkScalar fDy; | 569 SkScalar fDy; |
556 | 570 |
557 typedef SkDrawCommand INHERITED; | 571 typedef SkDrawCommand INHERITED; |
558 }; | 572 }; |
559 | 573 |
560 #endif | 574 #endif |
OLD | NEW |