blob: 7462e6fb7daab6c18363ed1f0fa65a70e62195e7 [file] [log] [blame]
commit-bot@chromium.org57641652014-02-10 15:01:05 +00001/*
2 * Copyright 2014 ARM Ltd.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SkBlurImage_opts_neon.h"
9#include "SkUtilsArm.h"
10
11bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX,
12 SkBoxBlurProc* boxBlurY,
13 SkBoxBlurProc* boxBlurXY,
14 SkBoxBlurProc* boxBlurYX) {
15#if SK_ARM_NEON_IS_NONE
16 return false;
djsollen4d6484e2014-09-02 06:32:25 -070017#elif defined(SK_CPU_ARM64) // Temporary fix for
18 return false; // http://skbug.com/2845
commit-bot@chromium.org57641652014-02-10 15:01:05 +000019#else
20#if SK_ARM_NEON_IS_DYNAMIC
21 if (!sk_cpu_arm_has_neon()) {
22 return false;
23 }
24#endif
25 return SkBoxBlurGetPlatformProcs_NEON(boxBlurX, boxBlurY, boxBlurXY, boxBlurYX);
26#endif
27}