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
diff --git a/gyp/opts.gyp b/gyp/opts.gyp
index dc5ff5c..69e3946 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': [