| 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 private: | 429 private: |
| 430 SkScalar* fXpos; | 430 SkScalar* fXpos; |
| 431 char* fText; | 431 char* fText; |
| 432 size_t fByteLength; | 432 size_t fByteLength; |
| 433 SkScalar fConstY; | 433 SkScalar fConstY; |
| 434 SkPaint fPaint; | 434 SkPaint fPaint; |
| 435 | 435 |
| 436 typedef SkDrawCommand INHERITED; | 436 typedef SkDrawCommand INHERITED; |
| 437 }; | 437 }; |
| 438 | 438 |
| 439 class SkDrawTextBlobCommand : public SkDrawCommand { |
| 440 public: |
| 441 SkDrawTextBlobCommand(const SkTextBlob* blob, SkScalar x, SkScalar y, const
SkPaint& paint); |
| 442 |
| 443 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 444 |
| 445 private: |
| 446 SkAutoTUnref<const SkTextBlob> fBlob; |
| 447 SkScalar fXPos; |
| 448 SkScalar fYPos; |
| 449 SkPaint fPaint; |
| 450 |
| 451 typedef SkDrawCommand INHERITED; |
| 452 }; |
| 453 |
| 439 class SkDrawRectCommand : public SkDrawCommand { | 454 class SkDrawRectCommand : public SkDrawCommand { |
| 440 public: | 455 public: |
| 441 SkDrawRectCommand(const SkRect& rect, const SkPaint& paint); | 456 SkDrawRectCommand(const SkRect& rect, const SkPaint& paint); |
| 442 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 457 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 443 | 458 |
| 444 const SkRect& rect() const { return fRect; } | 459 const SkRect& rect() const { return fRect; } |
| 445 const SkPaint& paint() const { return fPaint; } | 460 const SkPaint& paint() const { return fPaint; } |
| 446 private: | 461 private: |
| 447 SkRect fRect; | 462 SkRect fRect; |
| 448 SkPaint fPaint; | 463 SkPaint fPaint; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 class SkPopCullCommand : public SkDrawCommand { | 642 class SkPopCullCommand : public SkDrawCommand { |
| 628 public: | 643 public: |
| 629 SkPopCullCommand(); | 644 SkPopCullCommand(); |
| 630 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 645 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 631 virtual Action action() const { return kPopCull_Action; } | 646 virtual Action action() const { return kPopCull_Action; } |
| 632 private: | 647 private: |
| 633 typedef SkDrawCommand INHERITED; | 648 typedef SkDrawCommand INHERITED; |
| 634 }; | 649 }; |
| 635 | 650 |
| 636 #endif | 651 #endif |
| OLD | NEW |