OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 | 8 |
9 | 9 |
10 #ifndef SkXfermode_DEFINED | 10 #ifndef SkXfermode_DEFINED |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 kSoftLight_Mode, | 120 kSoftLight_Mode, |
121 kDifference_Mode, | 121 kDifference_Mode, |
122 kExclusion_Mode, | 122 kExclusion_Mode, |
123 kMultiply_Mode, | 123 kMultiply_Mode, |
124 kLastSeparableMode = kMultiply_Mode, | 124 kLastSeparableMode = kMultiply_Mode, |
125 | 125 |
126 kHue_Mode, | 126 kHue_Mode, |
127 kSaturation_Mode, | 127 kSaturation_Mode, |
128 kColor_Mode, | 128 kColor_Mode, |
129 kLuminosity_Mode, | 129 kLuminosity_Mode, |
130 kLastMode = kLuminosity_Mode | 130 |
131 // Luminance mask modes, to support SVG & CSS luminance masks. | |
132 // http://www.w3.org/TR/SVG/masking.html#Masking | |
133 // http://www.w3.org/TR/css-masking/ | |
134 kSrcInLum_Mode, | |
reed1
2013/08/20 17:21:35
Can we initially introduce this xfermode w/o addin
| |
135 kDstInLum_Mode, | |
136 | |
137 kLastMode = kDstInLum_Mode | |
131 }; | 138 }; |
132 | 139 |
133 /** | 140 /** |
134 * Gets the name of the Mode as a string. | 141 * Gets the name of the Mode as a string. |
135 */ | 142 */ |
136 static const char* ModeName(Mode); | 143 static const char* ModeName(Mode); |
137 | 144 |
138 /** | 145 /** |
139 * If the xfermode is one of the modes in the Mode enum, then asMode() | 146 * If the xfermode is one of the modes in the Mode enum, then asMode() |
140 * returns true and sets (if not null) mode accordingly. Otherwise it | 147 * returns true and sets (if not null) mode accordingly. Otherwise it |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
271 fProc = proc; | 278 fProc = proc; |
272 } | 279 } |
273 | 280 |
274 private: | 281 private: |
275 SkXfermodeProc fProc; | 282 SkXfermodeProc fProc; |
276 | 283 |
277 typedef SkXfermode INHERITED; | 284 typedef SkXfermode INHERITED; |
278 }; | 285 }; |
279 | 286 |
280 #endif | 287 #endif |
OLD | NEW |