| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 SkRotateCommand(SkScalar degrees); | 515 SkRotateCommand(SkScalar degrees); |
| 516 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 516 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 517 private: | 517 private: |
| 518 SkScalar fDegrees; | 518 SkScalar fDegrees; |
| 519 | 519 |
| 520 typedef SkDrawCommand INHERITED; | 520 typedef SkDrawCommand INHERITED; |
| 521 }; | 521 }; |
| 522 | 522 |
| 523 class SkSaveCommand : public SkDrawCommand { | 523 class SkSaveCommand : public SkDrawCommand { |
| 524 public: | 524 public: |
| 525 SkSaveCommand(SkCanvas::SaveFlags flags); | 525 SkSaveCommand(); |
| 526 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 526 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 527 virtual void trackSaveState(int* state) SK_OVERRIDE; | 527 virtual void trackSaveState(int* state) SK_OVERRIDE; |
| 528 virtual Action action() const SK_OVERRIDE { return kPushLayer_Action; } | 528 virtual Action action() const SK_OVERRIDE { return kPushLayer_Action; } |
| 529 private: | 529 private: |
| 530 SkCanvas::SaveFlags fFlags; | |
| 531 | |
| 532 typedef SkDrawCommand INHERITED; | 530 typedef SkDrawCommand INHERITED; |
| 533 }; | 531 }; |
| 534 | 532 |
| 535 class SkSaveLayerCommand : public SkDrawCommand { | 533 class SkSaveLayerCommand : public SkDrawCommand { |
| 536 public: | 534 public: |
| 537 SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint, | 535 SkSaveLayerCommand(const SkRect* bounds, const SkPaint* paint, |
| 538 SkCanvas::SaveFlags flags); | 536 SkCanvas::SaveFlags flags); |
| 539 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 537 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 540 virtual void vizExecute(SkCanvas* canvas) SK_OVERRIDE; | 538 virtual void vizExecute(SkCanvas* canvas) SK_OVERRIDE; |
| 541 virtual void trackSaveState(int* state) SK_OVERRIDE; | 539 virtual void trackSaveState(int* state) SK_OVERRIDE; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 class SkPopCullCommand : public SkDrawCommand { | 623 class SkPopCullCommand : public SkDrawCommand { |
| 626 public: | 624 public: |
| 627 SkPopCullCommand(); | 625 SkPopCullCommand(); |
| 628 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; | 626 virtual void execute(SkCanvas* canvas) SK_OVERRIDE; |
| 629 virtual Action action() const { return kPopCull_Action; } | 627 virtual Action action() const { return kPopCull_Action; } |
| 630 private: | 628 private: |
| 631 typedef SkDrawCommand INHERITED; | 629 typedef SkDrawCommand INHERITED; |
| 632 }; | 630 }; |
| 633 | 631 |
| 634 #endif | 632 #endif |
| OLD | NEW |