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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 protected: | 104 protected: |
105 SkTDArray<SkString*> fInfo; | 105 SkTDArray<SkString*> fInfo; |
106 | 106 |
107 private: | 107 private: |
108 OpType fOpType; | 108 OpType fOpType; |
109 size_t fOffset; | 109 size_t fOffset; |
110 bool fVisible; | 110 bool fVisible; |
111 }; | 111 }; |
112 | 112 |
| 113 typedef SkDrawCommand::OpType DrawType; |
| 114 |
113 class SkRestoreCommand : public SkDrawCommand { | 115 class SkRestoreCommand : public SkDrawCommand { |
114 public: | 116 public: |
115 SkRestoreCommand(); | 117 SkRestoreCommand(); |
116 void execute(SkCanvas* canvas) const SK_OVERRIDE; | 118 void execute(SkCanvas* canvas) const SK_OVERRIDE; |
117 Action action() const SK_OVERRIDE { return kPopLayer_Action; } | 119 Action action() const SK_OVERRIDE { return kPopLayer_Action; } |
118 | 120 |
119 private: | 121 private: |
120 typedef SkDrawCommand INHERITED; | 122 typedef SkDrawCommand INHERITED; |
121 }; | 123 }; |
122 | 124 |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 void setUserMatrix(const SkMatrix&) SK_OVERRIDE; | 588 void setUserMatrix(const SkMatrix&) SK_OVERRIDE; |
587 void execute(SkCanvas* canvas) const SK_OVERRIDE; | 589 void execute(SkCanvas* canvas) const SK_OVERRIDE; |
588 private: | 590 private: |
589 SkMatrix fUserMatrix; | 591 SkMatrix fUserMatrix; |
590 SkMatrix fMatrix; | 592 SkMatrix fMatrix; |
591 | 593 |
592 typedef SkDrawCommand INHERITED; | 594 typedef SkDrawCommand INHERITED; |
593 }; | 595 }; |
594 | 596 |
595 #endif | 597 #endif |
OLD | NEW |