OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkXfermode.h" | 8 #include "SkXfermode.h" |
9 #include "SkXfermode_proccoeff.h" | 9 #include "SkXfermode_proccoeff.h" |
10 #include "SkUtilsArm.h" | 10 #include "SkUtilsArm.h" |
11 | 11 |
12 extern SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_neon(const ProcCoeff&
rec, | 12 // If we find we do have NEON, we'll call this method from SkXfermodes_opts_arm_
neon.cpp. |
13 SkXfermode::Mode
mode); | 13 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl_neon(const ProcCoeff& rec, |
| 14 SkXfermode::Mode mode); |
14 | 15 |
15 extern SkXfermodeProc SkPlatformXfermodeProcFactory_impl_neon(SkXfermode::Mode m
ode); | 16 // If we don't have NEON, we'll call this method and return NULL. |
16 | 17 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, SkXfer
mode::Mode mode); |
17 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, | 18 SkProcCoeffXfermode* SkPlatformXfermodeFactory_impl(const ProcCoeff& rec, SkXfer
mode::Mode mode) { |
18 SkXfermode::Mode mode) { | |
19 return NULL; | 19 return NULL; |
20 } | 20 } |
21 | 21 |
22 SkXfermodeProc SkPlatformXfermodeProcFactory_impl(SkXfermode::Mode mode) { | 22 SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, SkXfermode:
:Mode mode); |
23 return NULL; | 23 SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, SkXfermode:
:Mode mode) { |
24 } | |
25 | |
26 SkProcCoeffXfermode* SkPlatformXfermodeFactory(const ProcCoeff& rec, | |
27 SkXfermode::Mode mode) { | |
28 return SK_ARM_NEON_WRAP(SkPlatformXfermodeFactory_impl)(rec, mode); | 24 return SK_ARM_NEON_WRAP(SkPlatformXfermodeFactory_impl)(rec, mode); |
29 } | 25 } |
30 | 26 |
31 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { | 27 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode); |
32 return SK_ARM_NEON_WRAP(SkPlatformXfermodeProcFactory_impl)(mode); | 28 SkXfermodeProc SkPlatformXfermodeProcFactory(SkXfermode::Mode mode) { return NUL
L; } |
33 } | |
OLD | NEW |