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