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