Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1244)

Unified Diff: skia/skia_library_opts.gyp

Issue 332393003: Manually roll Skia, picking up new SSE4 procs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/skia_library_opts.gyp
diff --git a/skia/skia_library_opts.gyp b/skia/skia_library_opts.gyp
index 1c9713f718a6b1b655ab8b1091efc1103a0650c6..c6ee642fd6854e53192053df6dabf0c7e79cc9fe 100644
--- a/skia/skia_library_opts.gyp
+++ b/skia/skia_library_opts.gyp
@@ -58,6 +58,7 @@
],
'dependencies': [
'skia_opts_ssse3',
+ 'skia_opts_sse4',
],
}],
[ 'target_arch == "arm"', {
@@ -204,6 +205,43 @@
}],
],
},
+ # For the same lame reasons as what is done for skia_opts, we also have to
+ # create another target specifically for SSE4 code as we would not want
+ # to compile the SSE2 code with -msse4 which would potentially allow
+ # gcc to generate SSE4 code.
+ {
+ 'target_name': 'skia_opts_sse4',
+ 'type': 'static_library',
+ 'includes': [
+ 'skia_common.gypi',
+ ],
+ 'include_dirs': [
+ '../third_party/skia/include/core',
+ '../third_party/skia/src/core',
+ ],
+ 'conditions': [
+ [ 'OS in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
+ 'cflags': [
+ '-msse4',
+ ],
+ }],
+ [ 'OS == "mac"', {
+ 'xcode_settings': {
+ 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES',
+ },
+ }],
+ [ 'target_arch == "x64"', {
+ 'sources': [
+ '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_x64_asm.S',
+ ],
+ }],
+ [ 'target_arch == "ia32"', {
+ 'sources': [
+ '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_asm.S',
+ ],
+ }],
+ ],
+ },
{
'target_name': 'skia_opts_none',
'type': 'static_library',
« no previous file with comments | « skia/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698