OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 The Android Open Source Project |
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 "SkBlitRow.h" | 8 #include "SkBlitRow.h" |
9 #include "SkUtilsArm.h" | 9 #include "SkUtilsArm.h" |
10 | 10 |
11 #include "SkBlitRow_opts_arm_neon.h" | 11 #include "SkBlitRow_opts_arm_neon.h" |
12 | 12 |
13 #if !defined(SK_ARM_HAS_NEON) | |
14 static const SkBlitRow::Proc16 sk_blitrow_platform_565_procs_arm[] = { | 13 static const SkBlitRow::Proc16 sk_blitrow_platform_565_procs_arm[] = { |
15 nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, | 14 nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, |
16 }; | 15 }; |
17 | 16 |
18 static const SkBlitRow::ColorProc16 sk_blitrow_platform_565_colorprocs_arm[] = { | 17 static const SkBlitRow::ColorProc16 sk_blitrow_platform_565_colorprocs_arm[] = { |
19 nullptr, nullptr, | 18 nullptr, nullptr, |
20 }; | 19 }; |
21 | 20 |
22 static const SkBlitRow::Proc32 sk_blitrow_platform_32_procs_arm[] = { | 21 static const SkBlitRow::Proc32 sk_blitrow_platform_32_procs_arm[] = { |
23 nullptr, nullptr, nullptr, nullptr, | 22 nullptr, nullptr, nullptr, nullptr, |
24 }; | 23 }; |
25 #endif | |
26 | 24 |
27 SkBlitRow::Proc16 SkBlitRow::PlatformFactory565(unsigned flags) { | 25 SkBlitRow::Proc16 SkBlitRow::PlatformFactory565(unsigned flags) { |
28 return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_procs_arm)[flags]; | 26 return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_procs_arm)[flags]; |
29 } | 27 } |
30 | 28 |
31 SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) { | 29 SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) { |
32 return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_colorprocs_arm)[flags]; | 30 return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_colorprocs_arm)[flags]; |
33 } | 31 } |
34 | 32 |
35 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { | 33 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { |
36 return SK_ARM_NEON_WRAP(sk_blitrow_platform_32_procs_arm)[flags]; | 34 return SK_ARM_NEON_WRAP(sk_blitrow_platform_32_procs_arm)[flags]; |
37 } | 35 } |
OLD | NEW |