Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: src/core/SkXfermode.cpp

Issue 224253003: Revert of Xfermode: SSE2 implementation of multiply_modeproc (Closed) Base URL: https://skia.googlesource.com/skia.git@xfermode
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/opts.gyp ('k') | src/opts/SkBlitRow_opts_SSE2.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gyp/opts.gyp ('k') | src/opts/SkBlitRow_opts_SSE2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698