gfx/skia/skia/src/opts/SkBlurImage_opts_arm.cpp
author Lee Salzman <lsalzman@mozilla.com>
Thu, 30 Jul 2015 11:51:29 -0400
changeset 255559 b8802b591ce273baec00243ce338845741dee21d
parent 169409 gfx/skia/trunk/src/opts/SkBlurImage_opts_arm.cpp@3f5e3a855a3d1afe36142b581637498bb5aeba39
child 276928 c5cb194cc9cb56d742fb3a7a826f0080b0404edc
permissions -rw-r--r--
Bug 1188462 - Rename gfx/skia/trunk directory to gfx/skia/skia. r=jrmuizel

/*
 * Copyright 2014 ARM Ltd.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "SkBlurImage_opts_neon.h"
#include "SkUtilsArm.h"

bool SkBoxBlurGetPlatformProcs(SkBoxBlurProc* boxBlurX,
                               SkBoxBlurProc* boxBlurY,
                               SkBoxBlurProc* boxBlurXY,
                               SkBoxBlurProc* boxBlurYX) {
#if SK_ARM_NEON_IS_NONE
    return false;
#else
#if SK_ARM_NEON_IS_DYNAMIC
    if (!sk_cpu_arm_has_neon()) {
        return false;
    }
#endif
    return SkBoxBlurGetPlatformProcs_NEON(boxBlurX, boxBlurY, boxBlurXY, boxBlurYX);
#endif
}