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

Side by Side Diff: src/opts/SkXfermode_opts_arm_neon.cpp

Issue 1196713004: Implement four more xfermodes with Sk4px. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: manually cast for missing 64-bit vreinterprets Created 5 years, 5 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 | « src/opts/SkXfermode_opts_SSE2.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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!
1019 if (auto proc = gNEONXfermodeProcs[mode]) { 1020 if (auto proc = gNEONXfermodeProcs[mode]) {
1020 return SkNEW_ARGS(SkNEONProcCoeffXfermode, (rec, mode, (void*)proc)); 1021 return SkNEW_ARGS(SkNEONProcCoeffXfermode, (rec, mode, (void*)proc));
1021 } 1022 }
1022 return NULL; 1023 return NULL;
1023 } 1024 }
1024 1025
1025 SkXfermodeProc SkPlatformXfermodeProcFactory_impl_neon(SkXfermode::Mode mode) { 1026 SkXfermodeProc SkPlatformXfermodeProcFactory_impl_neon(SkXfermode::Mode mode) {
1026 return gNEONXfermodeProcs1[mode]; 1027 return gNEONXfermodeProcs1[mode];
1027 } 1028 }
OLDNEW
« no previous file with comments | « src/opts/SkXfermode_opts_SSE2.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698