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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 DRAW_VERTICES, | 55 DRAW_VERTICES, |
56 RESTORE, | 56 RESTORE, |
57 ROTATE, | 57 ROTATE, |
58 SAVE, | 58 SAVE, |
59 SAVE_LAYER, | 59 SAVE_LAYER, |
60 SCALE, | 60 SCALE, |
61 SET_MATRIX, | 61 SET_MATRIX, |
62 SKEW, | 62 SKEW, |
63 TRANSLATE, | 63 TRANSLATE, |
64 NOOP, | 64 NOOP, |
| 65 BEGIN_COMMENT_GROUP, |
| 66 COMMENT, |
| 67 END_COMMENT_GROUP, |
65 | 68 |
66 LAST_DRAWTYPE_ENUM = NOOP | 69 LAST_DRAWTYPE_ENUM = END_COMMENT_GROUP |
67 }; | 70 }; |
68 | 71 |
69 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* | 72 // In the 'match' method, this constant will match any flavor of DRAW_BITMAP* |
70 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; | 73 static const int kDRAW_BITMAP_FLAVOR = LAST_DRAWTYPE_ENUM+1; |
71 | 74 |
72 enum DrawVertexFlags { | 75 enum DrawVertexFlags { |
73 DRAW_VERTICES_HAS_TEXS = 0x01, | 76 DRAW_VERTICES_HAS_TEXS = 0x01, |
74 DRAW_VERTICES_HAS_COLORS = 0x02, | 77 DRAW_VERTICES_HAS_COLORS = 0x02, |
75 DRAW_VERTICES_HAS_INDICES = 0x04 | 78 DRAW_VERTICES_HAS_INDICES = 0x04 |
76 }; | 79 }; |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 static void flattenRegion(SkOrderedWriteBuffer& buffer, const void* obj) { | 717 static void flattenRegion(SkOrderedWriteBuffer& buffer, const void* obj) { |
715 buffer.getWriter32()->writeRegion(*(SkRegion*)obj); | 718 buffer.getWriter32()->writeRegion(*(SkRegion*)obj); |
716 } | 719 } |
717 | 720 |
718 static void unflattenRegion(SkOrderedReadBuffer& buffer, void* obj) { | 721 static void unflattenRegion(SkOrderedReadBuffer& buffer, void* obj) { |
719 buffer.getReader32()->readRegion((SkRegion*)obj); | 722 buffer.getReader32()->readRegion((SkRegion*)obj); |
720 } | 723 } |
721 }; | 724 }; |
722 | 725 |
723 #endif | 726 #endif |
OLD | NEW |