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