| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 { | 439 class SkDrawTextBlobCommand : public SkDrawCommand { |
| 440 public: | 440 public: |
| 441 SkDrawTextBlobCommand(const SkTextBlob* blob, SkScalar x, SkScalar y, const
SkPaint& paint); | 441 SkDrawTextBlobCommand(const SkTextBlob* blob, SkScalar x, SkScalar y, const
SkPaint& paint); |
| 442 | 442 |
| 443 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 443 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 444 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; |
| 444 | 445 |
| 445 private: | 446 private: |
| 446 SkAutoTUnref<const SkTextBlob> fBlob; | 447 SkAutoTUnref<const SkTextBlob> fBlob; |
| 447 SkScalar fXPos; | 448 SkScalar fXPos; |
| 448 SkScalar fYPos; | 449 SkScalar fYPos; |
| 449 SkPaint fPaint; | 450 SkPaint fPaint; |
| 450 | 451 |
| 451 typedef SkDrawCommand INHERITED; | 452 typedef SkDrawCommand INHERITED; |
| 452 }; | 453 }; |
| 453 | 454 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 class SkPopCullCommand : public SkDrawCommand { | 643 class SkPopCullCommand : public SkDrawCommand { |
| 643 public: | 644 public: |
| 644 SkPopCullCommand(); | 645 SkPopCullCommand(); |
| 645 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 646 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 646 virtual Action action() const { return kPopCull_Action; } | 647 virtual Action action() const { return kPopCull_Action; } |
| 647 private: | 648 private: |
| 648 typedef SkDrawCommand INHERITED; | 649 typedef SkDrawCommand INHERITED; |
| 649 }; | 650 }; |
| 650 | 651 |
| 651 #endif | 652 #endif |
| OLD | NEW |