OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #ifndef SkPictureFlat_DEFINED | 7 #ifndef SkPictureFlat_DEFINED |
8 #define SkPictureFlat_DEFINED | 8 #define SkPictureFlat_DEFINED |
9 | 9 |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 DRAW_ANNOTATION, | 86 DRAW_ANNOTATION, |
87 DRAW_DRAWABLE, | 87 DRAW_DRAWABLE, |
88 DRAW_DRAWABLE_MATRIX, | 88 DRAW_DRAWABLE_MATRIX, |
89 DRAW_TEXT_RSXFORM, | 89 DRAW_TEXT_RSXFORM, |
90 | 90 |
91 TRANSLATE_Z, | 91 TRANSLATE_Z, |
92 | 92 |
93 DRAW_SHADOWED_PICTURE_LIGHTS, | 93 DRAW_SHADOWED_PICTURE_LIGHTS, |
94 DRAW_IMAGE_LATTICE, | 94 DRAW_IMAGE_LATTICE, |
| 95 DRAW_ARC, |
95 | 96 |
96 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_LATTICE | 97 LAST_DRAWTYPE_ENUM = DRAW_ARC |
97 }; | 98 }; |
98 | 99 |
99 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* | 100 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* |
100 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; | 101 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; |
101 | 102 |
102 enum DrawVertexFlags { | 103 enum DrawVertexFlags { |
103 DRAW_VERTICES_HAS_TEXS = 0x01, | 104 DRAW_VERTICES_HAS_TEXS = 0x01, |
104 DRAW_VERTICES_HAS_COLORS = 0x02, | 105 DRAW_VERTICES_HAS_COLORS = 0x02, |
105 DRAW_VERTICES_HAS_INDICES = 0x04, | 106 DRAW_VERTICES_HAS_INDICES = 0x04, |
106 DRAW_VERTICES_HAS_XFER = 0x08, | 107 DRAW_VERTICES_HAS_XFER = 0x08, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 void setupBuffer(SkReadBuffer& buffer) const { | 174 void setupBuffer(SkReadBuffer& buffer) const { |
174 buffer.setFactoryPlayback(fArray, fCount); | 175 buffer.setFactoryPlayback(fArray, fCount); |
175 } | 176 } |
176 | 177 |
177 private: | 178 private: |
178 int fCount; | 179 int fCount; |
179 SkFlattenable::Factory* fArray; | 180 SkFlattenable::Factory* fArray; |
180 }; | 181 }; |
181 | 182 |
182 #endif | 183 #endif |
OLD | NEW |