| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 static SkXfermodeProc16 GetProc16(Mode mode, SkColor srcColor); | 179 static SkXfermodeProc16 GetProc16(Mode mode, SkColor srcColor); |
| 180 | 180 |
| 181 /** | 181 /** |
| 182 * If the specified mode can be represented by a pair of Coeff, then return | 182 * If the specified mode can be represented by a pair of Coeff, then return |
| 183 * true and set (if not NULL) the corresponding coeffs. If the mode is | 183 * true and set (if not NULL) the corresponding coeffs. If the mode is |
| 184 * not representable as a pair of Coeffs, return false and ignore the | 184 * not representable as a pair of Coeffs, return false and ignore the |
| 185 * src and dst parameters. | 185 * src and dst parameters. |
| 186 */ | 186 */ |
| 187 static bool ModeAsCoeff(Mode mode, Coeff* src, Coeff* dst); | 187 static bool ModeAsCoeff(Mode mode, Coeff* src, Coeff* dst); |
| 188 | 188 |
| 189 // DEPRECATED: call AsMode(...) | 189 SK_ATTR_DEPRECATED("use AsMode(...)") |
| 190 static bool IsMode(const SkXfermode* xfer, Mode* mode) { | 190 static bool IsMode(const SkXfermode* xfer, Mode* mode) { |
| 191 return AsMode(xfer, mode); | 191 return AsMode(xfer, mode); |
| 192 } | 192 } |
| 193 | 193 |
| 194 /** A subclass may implement this factory function to work with the GPU back
end. It is legal | 194 /** A subclass may implement this factory function to work with the GPU back
end. It is legal |
| 195 to call this with all params NULL to simply test the return value. If ef
fect is non-NULL | 195 to call this with all params NULL to simply test the return value. If ef
fect is non-NULL |
| 196 then the xfermode may optionally allocate an effect to return and the ca
ller as *effect. | 196 then the xfermode may optionally allocate an effect to return and the ca
ller as *effect. |
| 197 The caller will install it and own a ref to it. Since the xfermode may o
r may not assign | 197 The caller will install it and own a ref to it. Since the xfermode may o
r may not assign |
| 198 *effect, the caller should set *effect to NULL beforehand. background sp
ecifies the | 198 *effect, the caller should set *effect to NULL beforehand. background sp
ecifies the |
| 199 texture to use as the background for compositing, and should be accessed
in the effect's | 199 texture to use as the background for compositing, and should be accessed
in the effect's |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 return fProc; | 276 return fProc; |
| 277 } | 277 } |
| 278 | 278 |
| 279 private: | 279 private: |
| 280 SkXfermodeProc fProc; | 280 SkXfermodeProc fProc; |
| 281 | 281 |
| 282 typedef SkXfermode INHERITED; | 282 typedef SkXfermode INHERITED; |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 #endif | 285 #endif |
| OLD | NEW |