5141d90796
CL (1 of 3) adds empty lists in our .gypi, and builds the files in those empty lists with the appropriate flags. CL (2 of 3) will have Chrome's GYP and GN files read these lists, and build them with the appropriate flags. CL (3 of 3) will add runtime detection and stub files to the lists with empty Init_sse42(), Init_avx(), Init_avx2() methods. After that, we should be able to use SSE 4.2, AVX, and AVX2 if desired. Some motivation: - SSE 4.2 adds some sweet string-oriented methods that can help us write fast high quality 32-bit hashes. - AVX is SSE doubled, e.g. 8 floats or two SkPMFloat at a time. - AVX2 is SSE2 doubled, e.g. 8 pixels at a time. BUG=skia:4117 Review URL: https://codereview.chromium.org/1290423007
62 lines
2.4 KiB
Python
62 lines
2.4 KiB
Python
# Copyright 2015 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
{
|
|
'none_sources': [
|
|
'<(skia_src_path)/opts/SkBitmapProcState_opts_none.cpp',
|
|
'<(skia_src_path)/opts/SkBlitMask_opts_none.cpp',
|
|
'<(skia_src_path)/opts/SkBlitRow_opts_none.cpp',
|
|
],
|
|
|
|
'armv7_sources': [
|
|
'<(skia_src_path)/opts/SkBitmapProcState_opts_arm.cpp',
|
|
'<(skia_src_path)/opts/SkBlitMask_opts_arm.cpp',
|
|
'<(skia_src_path)/opts/SkBlitRow_opts_arm.cpp',
|
|
],
|
|
'neon_sources': [
|
|
'<(skia_src_path)/opts/SkBitmapProcState_arm_neon.cpp',
|
|
'<(skia_src_path)/opts/SkBitmapProcState_matrixProcs_neon.cpp',
|
|
'<(skia_src_path)/opts/SkBlitMask_opts_arm_neon.cpp',
|
|
'<(skia_src_path)/opts/SkBlitRow_opts_arm_neon.cpp',
|
|
'<(skia_src_path)/opts/SkOpts_neon.cpp',
|
|
],
|
|
'arm64_sources': [
|
|
'<(skia_src_path)/opts/SkBitmapProcState_arm_neon.cpp',
|
|
'<(skia_src_path)/opts/SkBitmapProcState_matrixProcs_neon.cpp',
|
|
'<(skia_src_path)/opts/SkBitmapProcState_opts_arm.cpp',
|
|
'<(skia_src_path)/opts/SkBlitMask_opts_arm.cpp',
|
|
'<(skia_src_path)/opts/SkBlitMask_opts_arm_neon.cpp',
|
|
'<(skia_src_path)/opts/SkBlitRow_opts_arm.cpp',
|
|
'<(skia_src_path)/opts/SkBlitRow_opts_arm_neon.cpp',
|
|
'<(skia_src_path)/opts/SkOpts_neon.cpp',
|
|
],
|
|
|
|
'mips_dsp_sources': [
|
|
'<(skia_src_path)/opts/SkBitmapProcState_opts_mips_dsp.cpp',
|
|
'<(skia_src_path)/opts/SkBlitMask_opts_none.cpp',
|
|
'<(skia_src_path)/opts/SkBlitRow_opts_mips_dsp.cpp',
|
|
],
|
|
|
|
'sse2_sources': [
|
|
'<(skia_src_path)/opts/SkBitmapFilter_opts_SSE2.cpp',
|
|
'<(skia_src_path)/opts/SkBitmapProcState_opts_SSE2.cpp',
|
|
'<(skia_src_path)/opts/SkBlitRow_opts_SSE2.cpp',
|
|
'<(skia_src_path)/opts/opts_check_x86.cpp',
|
|
],
|
|
'ssse3_sources': [
|
|
'<(skia_src_path)/opts/SkBitmapProcState_opts_SSSE3.cpp',
|
|
'<(skia_src_path)/opts/SkOpts_ssse3.cpp',
|
|
],
|
|
'sse41_sources': [
|
|
'<(skia_src_path)/opts/SkBlitRow_opts_SSE4.cpp',
|
|
'<(skia_src_path)/opts/SkOpts_sse41.cpp',
|
|
],
|
|
'sse42_sources': [
|
|
],
|
|
'avx_sources': [
|
|
],
|
|
'avx2_sources': [
|
|
],
|
|
}
|