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 "SkString.h" | 13 #include "SkString.h" |
14 | 14 |
15 class SK_API SkDrawCommand { | 15 class SK_API SkDrawCommand { |
16 public: | 16 public: |
17 // Staging for Chromium | |
18 static const char* kDrawRectString; | |
19 static const char* kClipRectString; | |
20 // End Staging | |
21 | |
22 enum OpType { | 17 enum OpType { |
23 kBeginCommentGroup_OpType, | 18 kBeginCommentGroup_OpType, |
24 kClipPath_OpType, | 19 kClipPath_OpType, |
25 kClipRegion_OpType, | 20 kClipRegion_OpType, |
26 kClipRect_OpType, | 21 kClipRect_OpType, |
27 kClipRRect_OpType, | 22 kClipRRect_OpType, |
28 kComment_OpType, | 23 kComment_OpType, |
29 kConcat_OpType, | 24 kConcat_OpType, |
30 kDrawBitmap_OpType, | 25 kDrawBitmap_OpType, |
31 kDrawBitmapNine_OpType, | 26 kDrawBitmapNine_OpType, |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 void setUserMatrix(const SkMatrix&) SK_OVERRIDE; | 586 void setUserMatrix(const SkMatrix&) SK_OVERRIDE; |
592 void execute(SkCanvas* canvas) const SK_OVERRIDE; | 587 void execute(SkCanvas* canvas) const SK_OVERRIDE; |
593 private: | 588 private: |
594 SkMatrix fUserMatrix; | 589 SkMatrix fUserMatrix; |
595 SkMatrix fMatrix; | 590 SkMatrix fMatrix; |
596 | 591 |
597 typedef SkDrawCommand INHERITED; | 592 typedef SkDrawCommand INHERITED; |
598 }; | 593 }; |
599 | 594 |
600 #endif | 595 #endif |
OLD | NEW |