blob: d4b1d0dd88dc100dde945b69dcfdb981c8a6520b [file] [log] [blame]
reed@android.com7d2e3222009-07-30 02:22:31 +00001/*
borenet@google.com84d67152012-07-26 14:20:13 +00002 * Copyright 2012 The Android Open Source Project
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
reed@android.com7d2e3222009-07-30 02:22:31 +00006 */
7
borenet@google.com84d67152012-07-26 14:20:13 +00008#include "SkBlitRow.h"
djsollen@google.coma111e492013-08-09 12:35:08 +00009#include "SkUtilsArm.h"
borenet@google.com84d67152012-07-26 14:20:13 +000010
mtkleine683e812015-08-06 11:18:50 -070011#include "SkBlitRow_opts_arm_neon.h"
reed@android.com4e635f92009-10-19 17:39:46 +000012
mtkleinfed90d42016-02-12 13:56:13 -080013extern const SkBlitRow::Proc16 sk_blitrow_platform_565_procs_arm[] = {
halcanary96fcdcc2015-08-27 07:41:13 -070014 nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
reed@android.com7d2e3222009-07-30 02:22:31 +000015};
16
mtkleinfed90d42016-02-12 13:56:13 -080017extern const SkBlitRow::ColorProc16 sk_blitrow_platform_565_colorprocs_arm[] = {
halcanary96fcdcc2015-08-27 07:41:13 -070018 nullptr, nullptr,
mlee402448d2015-01-29 06:22:41 -080019};
20
mtkleinfed90d42016-02-12 13:56:13 -080021extern const SkBlitRow::Proc32 sk_blitrow_platform_32_procs_arm[] = {
halcanary96fcdcc2015-08-27 07:41:13 -070022 nullptr, nullptr, nullptr, nullptr,
reed@android.com3bbac132009-09-23 18:48:10 +000023};
djsollen@google.coma111e492013-08-09 12:35:08 +000024
reeda7f11912015-01-13 13:51:00 -080025SkBlitRow::Proc16 SkBlitRow::PlatformFactory565(unsigned flags) {
digit@google.coma8dd1ce2012-08-08 22:06:29 +000026 return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_procs_arm)[flags];
senorblanco@chromium.org92727612009-11-04 20:51:06 +000027}
28
reeda7f11912015-01-13 13:51:00 -080029SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) {
mlee402448d2015-01-29 06:22:41 -080030 return SK_ARM_NEON_WRAP(sk_blitrow_platform_565_colorprocs_arm)[flags];
reeda7f11912015-01-13 13:51:00 -080031}
32
reed@android.comf0f4e9a2009-11-13 19:00:49 +000033SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) {
digit@google.coma8dd1ce2012-08-08 22:06:29 +000034 return SK_ARM_NEON_WRAP(sk_blitrow_platform_32_procs_arm)[flags];
senorblanco@chromium.org92727612009-11-04 20:51:06 +000035}