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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 SAVE_LAYER_SAVELAYERREC, | 84 SAVE_LAYER_SAVELAYERREC, |
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 | 95 |
95 LAST_DRAWTYPE_ENUM = DRAW_SHADOWED_PICTURE_LIGHTS | 96 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_LATTICE |
96 }; | 97 }; |
97 | 98 |
98 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* | 99 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* |
99 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; | 100 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; |
100 | 101 |
101 enum DrawVertexFlags { | 102 enum DrawVertexFlags { |
102 DRAW_VERTICES_HAS_TEXS = 0x01, | 103 DRAW_VERTICES_HAS_TEXS = 0x01, |
103 DRAW_VERTICES_HAS_COLORS = 0x02, | 104 DRAW_VERTICES_HAS_COLORS = 0x02, |
104 DRAW_VERTICES_HAS_INDICES = 0x04, | 105 DRAW_VERTICES_HAS_INDICES = 0x04, |
105 DRAW_VERTICES_HAS_XFER = 0x08, | 106 DRAW_VERTICES_HAS_XFER = 0x08, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 void setupBuffer(SkReadBuffer& buffer) const { | 173 void setupBuffer(SkReadBuffer& buffer) const { |
173 buffer.setFactoryPlayback(fArray, fCount); | 174 buffer.setFactoryPlayback(fArray, fCount); |
174 } | 175 } |
175 | 176 |
176 private: | 177 private: |
177 int fCount; | 178 int fCount; |
178 SkFlattenable::Factory* fArray; | 179 SkFlattenable::Factory* fArray; |
179 }; | 180 }; |
180 | 181 |
181 #endif | 182 #endif |
OLD | NEW |