diff options
author | djordje.pesut <djordje.pesut@imgtec.com> | 2014-06-11 06:56:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-11 06:56:10 -0700 |
commit | 632a4546b085fea79f40212935e5ac6fa74612a2 (patch) | |
tree | 400222a2bf2093a9d9921ebbeac808faed956b59 /gyp/opts.gyp | |
parent | a22ea1882391cc5c84136060636d5c952c1f34b3 (diff) |
MIPS: added optimization for functions from SkBlitRow.
gain is ~40%
following function are optimized:
S32_D565_Blend
S32A_D565_Opaque_Dither
S32_D565_Opaque_Dither
S32_D565_Blend_Dither
S32A_D565_Opaque
S32A_D565_Blend
S32_Blend_BlitRow32
R=djsollen@google.com, teodora.petrovic@gmail.com
Author: djordje.pesut@imgtec.com
Review URL: https://codereview.chromium.org/326913004
Diffstat (limited to 'gyp/opts.gyp')
-rw-r--r-- | gyp/opts.gyp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/gyp/opts.gyp b/gyp/opts.gyp index dc5ff5c9e9..69e3946c34 100644 --- a/gyp/opts.gyp +++ b/gyp/opts.gyp @@ -100,7 +100,29 @@ }], ], }], - [ '(skia_arch_type == "mips") or (skia_arch_type == "arm" and arm_version < 7) \ + [ 'skia_arch_type == "mips"', { + 'sources': [ + '../src/opts/SkBitmapProcState_opts_none.cpp', + '../src/opts/SkBlitMask_opts_none.cpp', + '../src/opts/SkBlurImage_opts_none.cpp', + '../src/opts/SkMorphology_opts_none.cpp', + '../src/opts/SkUtils_opts_none.cpp', + '../src/opts/SkXfermode_opts_none.cpp', + ], + 'conditions': [ + [ '(mips_arch_variant == "mips32r2") \ + and (mips_dsp == 1 or mips_dsp == 2)', { + 'sources': [ + '../src/opts/SkBlitRow_opts_mips_dsp.cpp', + ], + }, { + 'sources': [ + '../src/opts/SkBlitRow_opts_none.cpp', + ], + }], + ], + }], + [ '(skia_arch_type == "arm" and arm_version < 7) \ or (skia_os == "ios") \ or (skia_os == "android" and skia_arch_type not in ["x86", "arm", "mips", "arm64"])', { 'sources': [ |