| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 private: | 337 private: |
| 338 SkPath fPath; | 338 SkPath fPath; |
| 339 SkPaint fPaint; | 339 SkPaint fPaint; |
| 340 | 340 |
| 341 typedef SkDrawCommand INHERITED; | 341 typedef SkDrawCommand INHERITED; |
| 342 }; | 342 }; |
| 343 | 343 |
| 344 class SkDrawPictureCommand : public SkDrawCommand { | 344 class SkDrawPictureCommand : public SkDrawCommand { |
| 345 public: | 345 public: |
| 346 SkDrawPictureCommand(const SkPicture* picture); | 346 SkDrawPictureCommand(const SkPicture* picture, const SkMatrix* matrix, const
SkPaint* paint); |
| 347 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 347 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 348 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; | 348 virtual bool render(SkCanvas* canvas) const SK_OVERRIDE; |
| 349 | 349 |
| 350 private: | 350 private: |
| 351 SkAutoTUnref<const SkPicture> fPicture; | 351 SkAutoTUnref<const SkPicture> fPicture; |
| 352 SkMatrix fMatrix; |
| 353 SkMatrix* fMatrixPtr; |
| 354 SkPaint fPaint; |
| 355 SkPaint* fPaintPtr; |
| 352 | 356 |
| 353 typedef SkDrawCommand INHERITED; | 357 typedef SkDrawCommand INHERITED; |
| 354 }; | 358 }; |
| 355 | 359 |
| 356 class SkDrawPointsCommand : public SkDrawCommand { | 360 class SkDrawPointsCommand : public SkDrawCommand { |
| 357 public: | 361 public: |
| 358 SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pt
s[], | 362 SkDrawPointsCommand(SkCanvas::PointMode mode, size_t count, const SkPoint pt
s[], |
| 359 const SkPaint& paint); | 363 const SkPaint& paint); |
| 360 virtual ~SkDrawPointsCommand() { delete [] fPts; } | 364 virtual ~SkDrawPointsCommand() { delete [] fPts; } |
| 361 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 365 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 class SkPopCullCommand : public SkDrawCommand { | 627 class SkPopCullCommand : public SkDrawCommand { |
| 624 public: | 628 public: |
| 625 SkPopCullCommand(); | 629 SkPopCullCommand(); |
| 626 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 630 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 627 virtual Action action() const { return kPopCull_Action; } | 631 virtual Action action() const { return kPopCull_Action; } |
| 628 private: | 632 private: |
| 629 typedef SkDrawCommand INHERITED; | 633 typedef SkDrawCommand INHERITED; |
| 630 }; | 634 }; |
| 631 | 635 |
| 632 #endif | 636 #endif |
| OLD | NEW |