| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 */ | 216 */ |
| 217 static bool AsNewEffectOrCoeff(SkXfermode*, | 217 static bool AsNewEffectOrCoeff(SkXfermode*, |
| 218 GrContext*, | 218 GrContext*, |
| 219 GrEffectRef** effect, | 219 GrEffectRef** effect, |
| 220 Coeff* src, | 220 Coeff* src, |
| 221 Coeff* dst, | 221 Coeff* dst, |
| 222 GrTexture* background = NULL); | 222 GrTexture* background = NULL); |
| 223 | 223 |
| 224 SkDEVCODE(virtual void toString(SkString* str) const = 0;) | 224 SkDEVCODE(virtual void toString(SkString* str) const = 0;) |
| 225 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() | 225 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP() |
| 226 SK_DEFINE_FLATTENABLE_EFFECT_TYPE(Xfermode) |
| 227 |
| 226 protected: | 228 protected: |
| 227 SkXfermode(SkFlattenableReadBuffer& rb) : SkFlattenable(rb) {} | 229 SkXfermode(SkFlattenableReadBuffer& rb) : SkFlattenable(rb) {} |
| 228 | 230 |
| 229 /** The default implementation of xfer32/xfer16/xferA8 in turn call this | 231 /** The default implementation of xfer32/xfer16/xferA8 in turn call this |
| 230 method, 1 color at a time (upscaled to a SkPMColor). The default | 232 method, 1 color at a time (upscaled to a SkPMColor). The default |
| 231 implmentation of this method just returns dst. If performance is | 233 implmentation of this method just returns dst. If performance is |
| 232 important, your subclass should override xfer32/xfer16/xferA8 directly. | 234 important, your subclass should override xfer32/xfer16/xferA8 directly. |
| 233 | 235 |
| 234 This method will not be called directly by the client, so it need not | 236 This method will not be called directly by the client, so it need not |
| 235 be implemented if your subclass has overridden xfer32/xfer16/xferA8 | 237 be implemented if your subclass has overridden xfer32/xfer16/xferA8 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 return fProc; | 284 return fProc; |
| 283 } | 285 } |
| 284 | 286 |
| 285 private: | 287 private: |
| 286 SkXfermodeProc fProc; | 288 SkXfermodeProc fProc; |
| 287 | 289 |
| 288 typedef SkXfermode INHERITED; | 290 typedef SkXfermode INHERITED; |
| 289 }; | 291 }; |
| 290 | 292 |
| 291 #endif | 293 #endif |
| OLD | NEW |