| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 /** Return an SkXfermode object for the specified mode. | 139 /** Return an SkXfermode object for the specified mode. |
| 140 */ | 140 */ |
| 141 static SkXfermode* Create(Mode mode); | 141 static SkXfermode* Create(Mode mode); |
| 142 | 142 |
| 143 /** Return a function pointer to a routine that applies the specified | 143 /** Return a function pointer to a routine that applies the specified |
| 144 porter-duff transfer mode. | 144 porter-duff transfer mode. |
| 145 */ | 145 */ |
| 146 static SkXfermodeProc GetProc(Mode mode); | 146 static SkXfermodeProc GetProc(Mode mode); |
| 147 static SkXfermodeProc4f GetProc4f(Mode); | 147 static SkXfermodeProc4f GetProc4f(Mode); |
| 148 | 148 |
| 149 virtual SkXfermodeProc4f getProc4f() const; |
| 150 |
| 149 /** | 151 /** |
| 150 * If the specified mode can be represented by a pair of Coeff, then return | 152 * If the specified mode can be represented by a pair of Coeff, then return |
| 151 * true and set (if not NULL) the corresponding coeffs. If the mode is | 153 * true and set (if not NULL) the corresponding coeffs. If the mode is |
| 152 * not representable as a pair of Coeffs, return false and ignore the | 154 * not representable as a pair of Coeffs, return false and ignore the |
| 153 * src and dst parameters. | 155 * src and dst parameters. |
| 154 */ | 156 */ |
| 155 static bool ModeAsCoeff(Mode mode, Coeff* src, Coeff* dst); | 157 static bool ModeAsCoeff(Mode mode, Coeff* src, Coeff* dst); |
| 156 | 158 |
| 157 SK_ATTR_DEPRECATED("use AsMode(...)") | 159 SK_ATTR_DEPRECATED("use AsMode(...)") |
| 158 static bool IsMode(const SkXfermode* xfer, Mode* mode) { | 160 static bool IsMode(const SkXfermode* xfer, Mode* mode) { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 264 |
| 263 private: | 265 private: |
| 264 enum { | 266 enum { |
| 265 kModeCount = kLastMode + 1 | 267 kModeCount = kLastMode + 1 |
| 266 }; | 268 }; |
| 267 | 269 |
| 268 typedef SkFlattenable INHERITED; | 270 typedef SkFlattenable INHERITED; |
| 269 }; | 271 }; |
| 270 | 272 |
| 271 #endif | 273 #endif |
| OLD | NEW |