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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 DRAW_LIT_ATLAS, |
77 | 78 |
78 LAST_DRAWTYPE_ENUM = DRAW_IMAGE_RECT | 79 LAST_DRAWTYPE_ENUM = DRAW_LIT_ATLAS |
79 }; | 80 }; |
80 | 81 |
81 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* | 82 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* |
82 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; | 83 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; |
83 | 84 |
84 enum DrawVertexFlags { | 85 enum DrawVertexFlags { |
85 DRAW_VERTICES_HAS_TEXS = 0x01, | 86 DRAW_VERTICES_HAS_TEXS = 0x01, |
86 DRAW_VERTICES_HAS_COLORS = 0x02, | 87 DRAW_VERTICES_HAS_COLORS = 0x02, |
87 DRAW_VERTICES_HAS_INDICES = 0x04, | 88 DRAW_VERTICES_HAS_INDICES = 0x04, |
88 DRAW_VERTICES_HAS_XFER = 0x08, | 89 DRAW_VERTICES_HAS_XFER = 0x08, |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 bool fReady; | 558 bool fReady; |
558 | 559 |
559 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas
ed. Careful! | 560 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas
ed. Careful! |
560 SkTDArray<const SkFlatData*> fIndexedData; | 561 SkTDArray<const SkFlatData*> fIndexedData; |
561 | 562 |
562 // For SkFlatData -> cached SkFlatData, which has index(). | 563 // For SkFlatData -> cached SkFlatData, which has index(). |
563 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; | 564 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; |
564 }; | 565 }; |
565 | 566 |
566 #endif | 567 #endif |
OLD | NEW |