Shouldn't call Fast Blur path(DoubleRowBoxBlur_NEON)
when kernelsize is 1. Or, uint16x8_t resultPixels will be overflow.
BUG=skia:2845
R=senorblanco@chromium.org
Review URL: https://codereview.chromium.org/
587543003
#if 0
S32A_D565_Blend_neon,
#else
- NULL, // https://code.google.com/p/skia/issues/detail?id=2845
- // https://code.google.com/p/skia/issues/detail?id=2797
+ NULL, // https://code.google.com/p/skia/issues/detail?id=2797
#endif
// dither
SkBoxBlurProc* boxBlurY,
SkBoxBlurProc* boxBlurXY,
SkBoxBlurProc* boxBlurYX) {
- // Temporary workaround for http://skbug.com/2845
- return false;
-
#if SK_ARM_NEON_IS_NONE
return false;
#else
const uint32x4_t scale = vdupq_n_u32((1 << 24) / kernelSize);
const uint32x4_t half = vdupq_n_u32(1 << 23);
- if (kernelSize < 128)
+ if (1 < kernelSize && kernelSize < 128)
{
SkDoubleRowBoxBlur_NEON<srcDirection, dstDirection>(&src, srcStride, &dst, kernelSize,
leftOffset, rightOffset, width, &height);