OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkPipeFormat_DEFINED | 8 #ifndef SkPipeFormat_DEFINED |
9 #define SkPipeFormat_DEFINED | 9 #define SkPipeFormat_DEFINED |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 enum { | 87 enum { |
88 kTextSize_NonDef = 1 << 0, | 88 kTextSize_NonDef = 1 << 0, |
89 kTextScaleX_NonDef = 1 << 1, | 89 kTextScaleX_NonDef = 1 << 1, |
90 kTextSkewX_NonDef = 1 << 2, | 90 kTextSkewX_NonDef = 1 << 2, |
91 kStrokeWidth_NonDef = 1 << 3, | 91 kStrokeWidth_NonDef = 1 << 3, |
92 kStrokeMiter_NonDef = 1 << 4, | 92 kStrokeMiter_NonDef = 1 << 4, |
93 kColor_NonDef = 1 << 5, | 93 kColor_NonDef = 1 << 5, |
94 kTypeface_NonDef = 1 << 6, | 94 kTypeface_NonDef = 1 << 6, |
95 kPathEffect_NonDef = 1 << 7, | 95 kPathEffect_NonDef = 1 << 7, |
96 kShader_NonDef = 1 << 8, | 96 kShader_NonDef = 1 << 8, |
97 kXfermode_NonDef = 1 << 9, | 97 kMaskFilter_NonDef = 1 << 9, |
98 kMaskFilter_NonDef = 1 << 10, | 98 kColorFilter_NonDef = 1 << 10, |
99 kColorFilter_NonDef = 1 << 11, | 99 kRasterizer_NonDef = 1 << 11, |
100 kRasterizer_NonDef = 1 << 12, | 100 kImageFilter_NonDef = 1 << 12, |
101 kImageFilter_NonDef = 1 << 13, | 101 kDrawLooper_NonDef = 1 << 13, |
102 kDrawLooper_NonDef = 1 << 14, | |
103 }; | 102 }; |
104 | 103 |
105 enum { | 104 enum { |
106 kFlags_SaveLayerMask = 0xFF, | 105 kFlags_SaveLayerMask = 0xFF, |
107 kHasBounds_SaveLayerMask = 1 << 8, | 106 kHasBounds_SaveLayerMask = 1 << 8, |
108 kHasPaint_SaveLayerMask = 1 << 9, | 107 kHasPaint_SaveLayerMask = 1 << 9, |
109 kHasBackdrop_SaveLayerMask = 1 << 10, | 108 kHasBackdrop_SaveLayerMask = 1 << 10, |
110 kDontClipToLayer_SaveLayerMask = 1 << 11, | 109 kDontClipToLayer_SaveLayerMask = 1 << 11, |
111 }; | 110 }; |
112 | 111 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 211 |
213 static inline SkPipeVerb unpack_verb(uint32_t data) { | 212 static inline SkPipeVerb unpack_verb(uint32_t data) { |
214 return (SkPipeVerb)(data >> 24); | 213 return (SkPipeVerb)(data >> 24); |
215 } | 214 } |
216 | 215 |
217 static inline unsigned unpack_verb_extra(uint32_t data) { | 216 static inline unsigned unpack_verb_extra(uint32_t data) { |
218 return data & 0xFFFFFF; | 217 return data & 0xFFFFFF; |
219 } | 218 } |
220 | 219 |
221 #endif | 220 #endif |
OLD | NEW |