Skip to content
  • zherczeg@webkit.org's avatar
    Optimizing gaussian blur filter to ARM-neon SIMD instruction set · 344a9263
    zherczeg@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=59447
    
    Patch by Zoltan Herczeg <zherczeg@inf.u-szeged.hu> on 2011-04-28
    Reviewed by Nikolas Zimmermann.
    
    This patch contains two sub-routines, one for speeding up
    alpha channel only gaussian blur (by 2.5 times) and one
    for speeding up all channel blur (by 4 times).
    
    The common code is also redesigned to better fit for platform
    specific code. This means large chunks of code was moved to
    different files, and all platform specific files are added to
    all build systems.
    
    * CMakeLists.txt:
    * GNUmakefile.am:
    * GNUmakefile.list.am:
    * WebCore.gypi:
    * WebCore.pro:
    * WebCore.vcproj/WebCore.vcproj:
    * WebCore.vcproj/WebCoreCommon.vsprops:
    * WebCore.xcodeproj/project.pbxproj:
    * platform/graphics/filters/FEGaussianBlur.cpp:
    (WebCore::FEGaussianBlur::platformApplyGeneric):
    (WebCore::FEGaussianBlur::apply):
    * platform/graphics/filters/FEGaussianBlur.h:
    (WebCore::FEGaussianBlur::kernelPosition):
    (WebCore::FEGaussianBlur::platformApply):
    * platform/graphics/filters/FELighting.cpp:
    (WebCore::FELighting::platformApplyGeneric):
    (WebCore::FELighting::drawLighting):
    * platform/graphics/filters/FELighting.h:
    (WebCore::FELighting::platformApply):
    * platform/graphics/filters/arm/FEGaussianBlurNEON.cpp: Added.
    (WebCore::WTF_ALIGNED):
    (WebCore::feGaussianBlurConstantsForNeon):
    * platform/graphics/filters/arm/FEGaussianBlurNEON.h: Added.
    (WebCore::FEGaussianBlur::platformApplyNeon):
    * platform/graphics/filters/arm/FELightingNEON.cpp:
    (WebCore::WTF_ALIGNED):
    (WebCore::FELighting::getPowerCoefficients):
    * platform/graphics/filters/arm/FELightingNEON.h:
    (WebCore::FELighting::platformApplyNeon):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85180 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    344a9263