1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/opts/SkBlurImage_opts_arm.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +/* 1.5 + * Copyright 2014 ARM Ltd. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license that can be 1.8 + * found in the LICENSE file. 1.9 + */ 1.10 + 1.11 +#include "SkBlurImage_opts_neon.h" 1.12 +#include "SkUtilsArm.h" 1.13 + 1.14 +bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX, 1.15 + SkBoxBlurProc* boxBlurY, 1.16 + SkBoxBlurProc* boxBlurXY, 1.17 + SkBoxBlurProc* boxBlurYX) { 1.18 +#if SK_ARM_NEON_IS_NONE 1.19 + return false; 1.20 +#else 1.21 +#if SK_ARM_NEON_IS_DYNAMIC 1.22 + if (!sk_cpu_arm_has_neon()) { 1.23 + return false; 1.24 + } 1.25 +#endif 1.26 + return SkBoxBlurGetPlatformProcs_NEON(boxBlurX, boxBlurY, boxBlurXY, boxBlurYX); 1.27 +#endif 1.28 +}