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 #include "SkXfermode.h" | 10 #include "SkXfermode.h" |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 /////////////////////////////////////////////////////////////////////////////// | 669 /////////////////////////////////////////////////////////////////////////////// |
670 | 670 |
671 bool SkXfermode::asCoeff(Coeff* src, Coeff* dst) const { | 671 bool SkXfermode::asCoeff(Coeff* src, Coeff* dst) const { |
672 return false; | 672 return false; |
673 } | 673 } |
674 | 674 |
675 bool SkXfermode::asMode(Mode* mode) const { | 675 bool SkXfermode::asMode(Mode* mode) const { |
676 return false; | 676 return false; |
677 } | 677 } |
678 | 678 |
679 bool SkXfermode::asNewEffect(GrEffect** effect, GrTexture* background) const { | 679 bool SkXfermode::asNewEffect(GrEffectRef** effect, GrTexture* background) const
{ |
680 return false; | 680 return false; |
681 } | 681 } |
682 | 682 |
683 bool SkXfermode::AsNewEffectOrCoeff(SkXfermode* xfermode, | 683 bool SkXfermode::AsNewEffectOrCoeff(SkXfermode* xfermode, |
684 GrEffect** effect, | 684 GrEffectRef** effect, |
685 Coeff* src, | 685 Coeff* src, |
686 Coeff* dst, | 686 Coeff* dst, |
687 GrTexture* background) { | 687 GrTexture* background) { |
688 if (NULL == xfermode) { | 688 if (NULL == xfermode) { |
689 return ModeAsCoeff(kSrcOver_Mode, src, dst); | 689 return ModeAsCoeff(kSrcOver_Mode, src, dst); |
690 } else if (xfermode->asCoeff(src, dst)) { | 690 } else if (xfermode->asCoeff(src, dst)) { |
691 return true; | 691 return true; |
692 } else { | 692 } else { |
693 return xfermode->asNewEffect(effect, background); | 693 return xfermode->asNewEffect(effect, background); |
694 } | 694 } |
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1956 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) | 1956 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) |
1957 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) | 1957 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) |
1958 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) | 1958 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) |
1959 #if !SK_ARM_NEON_IS_NONE | 1959 #if !SK_ARM_NEON_IS_NONE |
1960 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) | 1960 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) |
1961 #endif | 1961 #endif |
1962 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) | 1962 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) |
1963 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSSE2ProcCoeffXfermode) | 1963 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSSE2ProcCoeffXfermode) |
1964 #endif | 1964 #endif |
1965 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1965 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |