OLD | NEW |
1 // Copyright 2013 unknown | 1 // Copyright 2013 unknown |
2 | 2 |
3 #include "SkXfermode.h" | 3 #include "SkXfermode.h" |
4 #include "SkXfermode_proccoeff.h" | 4 #include "SkXfermode_proccoeff.h" |
5 #include "SkColorPriv.h" | 5 #include "SkColorPriv.h" |
6 | 6 |
7 #include <arm_neon.h> | 7 #include <arm_neon.h> |
8 #include "SkColor_opts_neon.h" | 8 #include "SkColor_opts_neon.h" |
9 #include "SkXfermode_opts_arm_neon.h" | 9 #include "SkXfermode_opts_arm_neon.h" |
10 #include "Sk4pxXfermode.h" | 10 #include "Sk4pxXfermode.h" |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 SK_COMPILE_ASSERT( | 1009 SK_COMPILE_ASSERT( |
1010 SK_ARRAY_COUNT(gNEONXfermodeProcs1) == SkXfermode::kLastMode + 1, | 1010 SK_ARRAY_COUNT(gNEONXfermodeProcs1) == SkXfermode::kLastMode + 1, |
1011 mode1_count_arm | 1011 mode1_count_arm |
1012 ); | 1012 ); |
1013 | 1013 |
1014 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_neon(const ProcCoeff& rec, | 1014 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_neon(const ProcCoeff& rec, |
1015 SkXfermode::Mode mode)
{ | 1015 SkXfermode::Mode mode)
{ |
1016 if (auto xfermode = SkCreate4pxXfermode(rec, mode)) { | 1016 if (auto xfermode = SkCreate4pxXfermode(rec, mode)) { |
1017 return xfermode; | 1017 return xfermode; |
1018 } | 1018 } |
1019 // TODO: Sk4pxXfermode now covers every mode found in this file. Delete the
m all! | |
1020 if (auto proc = gNEONXfermodeProcs[mode]) { | 1019 if (auto proc = gNEONXfermodeProcs[mode]) { |
1021 return SkNEW_ARGS(SkNEONProcCoeffXfermode, (rec, mode, (void*)proc)); | 1020 return SkNEW_ARGS(SkNEONProcCoeffXfermode, (rec, mode, (void*)proc)); |
1022 } | 1021 } |
1023 return NULL; | 1022 return NULL; |
1024 } | 1023 } |
1025 | 1024 |
1026 SkXfermodeProc SkPlatformXfermodeProcFactory_impl_neon(SkXfermode::Mode mode) { | 1025 SkXfermodeProc SkPlatformXfermodeProcFactory_impl_neon(SkXfermode::Mode mode) { |
1027 return gNEONXfermodeProcs1[mode]; | 1026 return gNEONXfermodeProcs1[mode]; |
1028 } | 1027 } |
OLD | NEW |