reed@android.com | 7d2e322 | 2009-07-30 02:22:31 +0000 | [diff] [blame] | 1 | /* |
borenet@google.com | 84d6715 | 2012-07-26 14:20:13 +0000 | [diff] [blame] | 2 | * Copyright 2012 The Android Open Source Project |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
reed@android.com | 7d2e322 | 2009-07-30 02:22:31 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
borenet@google.com | 84d6715 | 2012-07-26 14:20:13 +0000 | [diff] [blame] | 8 | #include "SkBlitRow.h" |
djsollen@google.com | a111e49 | 2013-08-09 12:35:08 +0000 | [diff] [blame] | 9 | #include "SkUtilsArm.h" |
borenet@google.com | 84d6715 | 2012-07-26 14:20:13 +0000 | [diff] [blame] | 10 | |
mtklein | e683e81 | 2015-08-06 11:18:50 -0700 | [diff] [blame] | 11 | #include "SkBlitRow_opts_arm_neon.h" |
reed@android.com | 4e635f9 | 2009-10-19 17:39:46 +0000 | [diff] [blame] | 12 | |
mtklein | fed90d4 | 2016-02-12 13:56:13 -0800 | [diff] [blame] | 13 | extern const SkBlitRow::Proc16 sk_blitrow_platform_565_procs_arm[] = { |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 14 | nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, |
reed@android.com | 7d2e322 | 2009-07-30 02:22:31 +0000 | [diff] [blame] | 15 | }; |
| 16 | |
mtklein | fed90d4 | 2016-02-12 13:56:13 -0800 | [diff] [blame] | 17 | extern const SkBlitRow::ColorProc16 sk_blitrow_platform_565_colorprocs_arm[] = { |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 18 | nullptr, nullptr, |
mlee | 402448d | 2015-01-29 06:22:41 -0800 | [diff] [blame] | 19 | }; |
| 20 | |
mtklein | fed90d4 | 2016-02-12 13:56:13 -0800 | [diff] [blame] | 21 | extern const SkBlitRow::Proc32 sk_blitrow_platform_32_procs_arm[] = { |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 22 | nullptr, nullptr, nullptr, nullptr, |
reed@android.com | 3bbac13 | 2009-09-23 18:48:10 +0000 | [diff] [blame] | 23 | }; |
djsollen@google.com | a111e49 | 2013-08-09 12:35:08 +0000 | [diff] [blame] | 24 | |
reed | a7f1191 | 2015-01-13 13:51:00 -0800 | [diff] [blame] | 25 | SkBlitRow::Proc16 SkBlitRow::PlatformFactory565(unsigned flags) { |
digit@google.com | a8dd1ce | 2012-08-08 22:06:29 +0000 | [diff] [blame] | 26 | return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_procs_arm)[flags]; |
senorblanco@chromium.org | 9272761 | 2009-11-04 20:51:06 +0000 | [diff] [blame] | 27 | } |
| 28 | |
reed | a7f1191 | 2015-01-13 13:51:00 -0800 | [diff] [blame] | 29 | SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) { |
mlee | 402448d | 2015-01-29 06:22:41 -0800 | [diff] [blame] | 30 | return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_colorprocs_arm)[flags]; |
reed | a7f1191 | 2015-01-13 13:51:00 -0800 | [diff] [blame] | 31 | } |
| 32 | |
reed@android.com | f0f4e9a | 2009-11-13 19:00:49 +0000 | [diff] [blame] | 33 | SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { |
digit@google.com | a8dd1ce | 2012-08-08 22:06:29 +0000 | [diff] [blame] | 34 | return SK_ARM_NEON_WRAP(sk_blitrow_platform_32_procs_arm)[flags]; |
senorblanco@chromium.org | 9272761 | 2009-11-04 20:51:06 +0000 | [diff] [blame] | 35 | } |