OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 #ifndef SkPictureFlat_DEFINED | 8 #ifndef SkPictureFlat_DEFINED |
9 #define SkPictureFlat_DEFINED | 9 #define SkPictureFlat_DEFINED |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 DRAW_RECT, | 44 DRAW_RECT, |
45 DRAW_RRECT, | 45 DRAW_RRECT, |
46 DRAW_SPRITE, | 46 DRAW_SPRITE, |
47 DRAW_TEXT, | 47 DRAW_TEXT, |
48 DRAW_TEXT_ON_PATH, | 48 DRAW_TEXT_ON_PATH, |
49 DRAW_TEXT_TOP_BOTTOM, // fast variant of DRAW_TEXT | 49 DRAW_TEXT_TOP_BOTTOM, // fast variant of DRAW_TEXT |
50 DRAW_VERTICES, | 50 DRAW_VERTICES, |
51 RESTORE, | 51 RESTORE, |
52 ROTATE, | 52 ROTATE, |
53 SAVE, | 53 SAVE, |
54 SAVE_LAYER, | 54 SAVE_LAYER_SAVEFLAGS_DEPRECATED, |
55 SCALE, | 55 SCALE, |
56 SET_MATRIX, | 56 SET_MATRIX, |
57 SKEW, | 57 SKEW, |
58 TRANSLATE, | 58 TRANSLATE, |
59 NOOP, | 59 NOOP, |
60 BEGIN_COMMENT_GROUP, // deprecated (M44) | 60 BEGIN_COMMENT_GROUP, // deprecated (M44) |
61 COMMENT, // deprecated (M44) | 61 COMMENT, // deprecated (M44) |
62 END_COMMENT_GROUP, // deprecated (M44) | 62 END_COMMENT_GROUP, // deprecated (M44) |
63 | 63 |
64 // new ops -- feel free to re-alphabetize on next version bump | 64 // new ops -- feel free to re-alphabetize on next version bump |
65 DRAW_DRRECT, | 65 DRAW_DRRECT, |
66 PUSH_CULL, // deprecated, M41 was last Chromium version to write this to an
.skp | 66 PUSH_CULL, // deprecated, M41 was last Chromium version to write this to an
.skp |
67 POP_CULL, // deprecated, M41 was last Chromium version to write this to an
.skp | 67 POP_CULL, // deprecated, M41 was last Chromium version to write this to an
.skp |
68 | 68 |
69 DRAW_PATCH, // could not add in aphabetical order | 69 DRAW_PATCH, // could not add in aphabetical order |
70 DRAW_PICTURE_MATRIX_PAINT, | 70 DRAW_PICTURE_MATRIX_PAINT, |
71 DRAW_TEXT_BLOB, | 71 DRAW_TEXT_BLOB, |
72 DRAW_IMAGE, | 72 DRAW_IMAGE, |
73 DRAW_IMAGE_RECT_STRICT, // deprecated (M45) | 73 DRAW_IMAGE_RECT_STRICT, // deprecated (M45) |
74 DRAW_ATLAS, | 74 DRAW_ATLAS, |
75 DRAW_IMAGE_NINE, | 75 DRAW_IMAGE_NINE, |
76 DRAW_IMAGE_RECT, | 76 DRAW_IMAGE_RECT, |
77 | 77 |
78 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_RECT | 78 SAVE_LAYER_SAVELAYERFLAGS, |
| 79 |
| 80 LAST_DRAWTYPE_ENUM = SAVE_LAYER_SAVELAYERFLAGS, |
79 }; | 81 }; |
80 | 82 |
81 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* | 83 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* |
82 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; | 84 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; |
83 | 85 |
84 enum DrawVertexFlags { | 86 enum DrawVertexFlags { |
85 DRAW_VERTICES_HAS_TEXS = 0x01, | 87 DRAW_VERTICES_HAS_TEXS = 0x01, |
86 DRAW_VERTICES_HAS_COLORS = 0x02, | 88 DRAW_VERTICES_HAS_COLORS = 0x02, |
87 DRAW_VERTICES_HAS_INDICES = 0x04, | 89 DRAW_VERTICES_HAS_INDICES = 0x04, |
88 DRAW_VERTICES_HAS_XFER = 0x08, | 90 DRAW_VERTICES_HAS_XFER = 0x08, |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 bool fReady; | 555 bool fReady; |
554 | 556 |
555 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas
ed. Careful! | 557 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas
ed. Careful! |
556 SkTDArray<const SkFlatData*> fIndexedData; | 558 SkTDArray<const SkFlatData*> fIndexedData; |
557 | 559 |
558 // For SkFlatData -> cached SkFlatData, which has index(). | 560 // For SkFlatData -> cached SkFlatData, which has index(). |
559 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; | 561 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; |
560 }; | 562 }; |
561 | 563 |
562 #endif | 564 #endif |
OLD | NEW |