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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 DRAW_IMAGE_NINE, | 73 DRAW_IMAGE_NINE, |
74 DRAW_IMAGE_RECT, | 74 DRAW_IMAGE_RECT, |
75 | 75 |
76 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016, | 76 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016, |
77 SAVE_LAYER_SAVELAYERREC, | 77 SAVE_LAYER_SAVELAYERREC, |
78 | 78 |
79 DRAW_ANNOTATION, | 79 DRAW_ANNOTATION, |
80 DRAW_DRAWABLE, | 80 DRAW_DRAWABLE, |
81 DRAW_DRAWABLE_MATRIX, | 81 DRAW_DRAWABLE_MATRIX, |
82 DRAW_TEXT_RSXFORM, | 82 DRAW_TEXT_RSXFORM, |
| 83 DRAW_BITMAP_NINE_DIVS, |
83 | 84 |
84 LAST_DRAWTYPE_ENUM = DRAW_DRAWABLE_MATRIX, | 85 LAST_DRAWTYPE_ENUM = DRAW_BITMAP_NINE_DIVS, |
85 }; | 86 }; |
86 | 87 |
87 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* | 88 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* |
88 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; | 89 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; |
89 | 90 |
90 enum DrawVertexFlags { | 91 enum DrawVertexFlags { |
91 DRAW_VERTICES_HAS_TEXS = 0x01, | 92 DRAW_VERTICES_HAS_TEXS = 0x01, |
92 DRAW_VERTICES_HAS_COLORS = 0x02, | 93 DRAW_VERTICES_HAS_COLORS = 0x02, |
93 DRAW_VERTICES_HAS_INDICES = 0x04, | 94 DRAW_VERTICES_HAS_INDICES = 0x04, |
94 DRAW_VERTICES_HAS_XFER = 0x08, | 95 DRAW_VERTICES_HAS_XFER = 0x08, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 void setupBuffer(SkReadBuffer& buffer) const { | 162 void setupBuffer(SkReadBuffer& buffer) const { |
162 buffer.setFactoryPlayback(fArray, fCount); | 163 buffer.setFactoryPlayback(fArray, fCount); |
163 } | 164 } |
164 | 165 |
165 private: | 166 private: |
166 int fCount; | 167 int fCount; |
167 SkFlattenable::Factory* fArray; | 168 SkFlattenable::Factory* fArray; |
168 }; | 169 }; |
169 | 170 |
170 #endif | 171 #endif |
OLD | NEW |