| 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" |
| 11 #include "SkXfermode_proccoeff.h" | 11 #include "SkXfermode_proccoeff.h" |
| 12 #include "SkColorPriv.h" | 12 #include "SkColorPriv.h" |
| 13 #include "SkMathPriv.h" | 13 #include "SkMathPriv.h" |
| 14 #include "SkOnce.h" | 14 #include "SkOnce.h" |
| 15 #include "SkReadBuffer.h" | 15 #include "SkReadBuffer.h" |
| 16 #include "SkString.h" | 16 #include "SkString.h" |
| 17 #include "SkUtilsArm.h" | 17 #include "SkUtilsArm.h" |
| 18 #include "SkWriteBuffer.h" | 18 #include "SkWriteBuffer.h" |
| 19 | 19 |
| 20 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 | |
| 21 #include "SkXfermode_opts_SSE2.h" | |
| 22 #endif | |
| 23 | |
| 24 #if !SK_ARM_NEON_IS_NONE | 20 #if !SK_ARM_NEON_IS_NONE |
| 25 #include "SkXfermode_opts_arm_neon.h" | 21 #include "SkXfermode_opts_arm_neon.h" |
| 26 #endif | 22 #endif |
| 27 | 23 |
| 28 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b) | 24 #define SkAlphaMulAlpha(a, b) SkMulDiv255Round(a, b) |
| 29 | 25 |
| 30 #if 0 | 26 #if 0 |
| 31 // idea for higher precision blends in xfer procs (and slightly faster) | 27 // idea for higher precision blends in xfer procs (and slightly faster) |
| 32 // see DstATop as a probable caller | 28 // see DstATop as a probable caller |
| 33 static U8CPU mulmuldiv255round(U8CPU a, U8CPU b, U8CPU c, U8CPU d) { | 29 static U8CPU mulmuldiv255round(U8CPU a, U8CPU b, U8CPU c, U8CPU d) { |
| (...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1990 | 1986 |
| 1991 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) | 1987 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) |
| 1992 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) | 1988 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) |
| 1993 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) | 1989 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) |
| 1994 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) | 1990 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) |
| 1995 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) | 1991 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) |
| 1996 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) | 1992 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) |
| 1997 #if !SK_ARM_NEON_IS_NONE | 1993 #if !SK_ARM_NEON_IS_NONE |
| 1998 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) | 1994 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) |
| 1999 #endif | 1995 #endif |
| 2000 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 | |
| 2001 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSSE2ProcCoeffXfermode) | |
| 2002 #endif | |
| 2003 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1996 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
| OLD | NEW |