mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
optimise gfxImageSurface for SSE2
This commit is contained in:
parent
629f4db8fe
commit
2e6dfbcc5e
2 changed files with 143 additions and 6 deletions
|
|
@ -138,12 +138,16 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|||
'gfxDWriteFonts.cpp',
|
||||
]
|
||||
|
||||
# Are we targeting x86 or x64? If so, build gfxAlphaRecoverySSE2.cpp.
|
||||
# Are we targeting x86 or x64? If so, build gfxAlphaRecoverySSE2.cpp with
|
||||
# SSE2 optimization, and also apply SSE2 support to gfxImageSurface.cpp.
|
||||
if CONFIG['INTEL_ARCHITECTURE']:
|
||||
SOURCES += ['gfxAlphaRecoverySSE2.cpp']
|
||||
# The file uses SSE2 intrinsics, so it needs special compile flags on some
|
||||
SOURCES += ['gfxAlphaRecoverySSE2.cpp', 'gfxImageSurface.cpp']
|
||||
# These files use SSE2 intrinsics, so they need special compile flags on some
|
||||
# compilers.
|
||||
SOURCES['gfxAlphaRecoverySSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
|
||||
SOURCES['gfxImageSurface.cpp'].flags += CONFIG['SSE2_FLAGS']
|
||||
else:
|
||||
UNIFIED_SOURCES += ['gfxImageSurface.cpp']
|
||||
|
||||
SOURCES += [
|
||||
'ContextStateTracker.cpp',
|
||||
|
|
@ -178,7 +182,6 @@ UNIFIED_SOURCES += [
|
|||
'gfxGradientCache.cpp',
|
||||
'gfxGraphiteShaper.cpp',
|
||||
'gfxHarfBuzzShaper.cpp',
|
||||
'gfxImageSurface.cpp',
|
||||
'gfxMathTable.cpp',
|
||||
'gfxMatrix.cpp',
|
||||
'gfxPattern.cpp',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue