| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016, | 78 SAVE_LAYER_SAVELAYERFLAGS_DEPRECATED_JAN_2016, |
| 79 SAVE_LAYER_SAVELAYERREC, | 79 SAVE_LAYER_SAVELAYERREC, |
| 80 | 80 |
| 81 DRAW_ANNOTATION, | 81 LAST_DRAWTYPE_ENUM = SAVE_LAYER_SAVELAYERREC, |
| 82 | |
| 83 LAST_DRAWTYPE_ENUM = DRAW_ANNOTATION, | |
| 84 }; | 82 }; |
| 85 | 83 |
| 86 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* | 84 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* |
| 87 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; | 85 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; |
| 88 | 86 |
| 89 enum DrawVertexFlags { | 87 enum DrawVertexFlags { |
| 90 DRAW_VERTICES_HAS_TEXS = 0x01, | 88 DRAW_VERTICES_HAS_TEXS = 0x01, |
| 91 DRAW_VERTICES_HAS_COLORS = 0x02, | 89 DRAW_VERTICES_HAS_COLORS = 0x02, |
| 92 DRAW_VERTICES_HAS_INDICES = 0x04, | 90 DRAW_VERTICES_HAS_INDICES = 0x04, |
| 93 DRAW_VERTICES_HAS_XFER = 0x08, | 91 DRAW_VERTICES_HAS_XFER = 0x08, |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 bool fReady; | 563 bool fReady; |
| 566 | 564 |
| 567 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas
ed. Careful! | 565 // For index -> SkFlatData. 0-based, while all indices in the API are 1-bas
ed. Careful! |
| 568 SkTDArray<const SkFlatData*> fIndexedData; | 566 SkTDArray<const SkFlatData*> fIndexedData; |
| 569 | 567 |
| 570 // For SkFlatData -> cached SkFlatData, which has index(). | 568 // For SkFlatData -> cached SkFlatData, which has index(). |
| 571 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; | 569 SkTDynamicHash<SkFlatData, SkFlatData, SkFlatData::HashTraits> fHash; |
| 572 }; | 570 }; |
| 573 | 571 |
| 574 #endif | 572 #endif |
| OLD | NEW |