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_ |
11 | 11 |
12 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
| 13 #include "SkTLazy.h" |
| 14 #include "SkPath.h" |
| 15 #include "SkRRect.h" |
13 #include "SkString.h" | 16 #include "SkString.h" |
| 17 #include "SkTDArray.h" |
14 | 18 |
15 class SK_API SkDrawCommand { | 19 class SK_API SkDrawCommand { |
16 public: | 20 public: |
17 enum OpType { | 21 enum OpType { |
18 kBeginDrawPicture_OpType, | 22 kBeginDrawPicture_OpType, |
19 kClipPath_OpType, | 23 kClipPath_OpType, |
20 kClipRegion_OpType, | 24 kClipRegion_OpType, |
21 kClipRect_OpType, | 25 kClipRect_OpType, |
22 kClipRRect_OpType, | 26 kClipRRect_OpType, |
23 kConcat_OpType, | 27 kConcat_OpType, |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 void setUserMatrix(const SkMatrix&) override; | 594 void setUserMatrix(const SkMatrix&) override; |
591 void execute(SkCanvas* canvas) const override; | 595 void execute(SkCanvas* canvas) const override; |
592 private: | 596 private: |
593 SkMatrix fUserMatrix; | 597 SkMatrix fUserMatrix; |
594 SkMatrix fMatrix; | 598 SkMatrix fMatrix; |
595 | 599 |
596 typedef SkDrawCommand INHERITED; | 600 typedef SkDrawCommand INHERITED; |
597 }; | 601 }; |
598 | 602 |
599 #endif | 603 #endif |
OLD | NEW |