Skip to content

Commit

Permalink
Manually roll Skia, picking up new SSE4 procs.
Browse files Browse the repository at this point in the history
https://skia.googlesource.com/skia/+log/12ffdb31c9a01b255768a9a522c7af90a345c952..4a2489f7bbaccfe588597193561526d579004653

CQ_EXTRA_TRYBOTS=tryserver.chromium:linux_layout_rel
BUG=

win_chromium_rel failures look flaky
NOTRY=true

Review URL: https://codereview.chromium.org/332393003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280859 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
mtklein@chromium.org committed Jul 1, 2014
1 parent 19aec37 commit 1749589
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ vars = {
"lss_revision": "26",
"sfntly_revision": "239",
"lighttpd_revision": "33737",
"skia_revision": "12ffdb31c9a01b255768a9a522c7af90a345c952",
"skia_revision": "4a2489f7bbaccfe588597193561526d579004653",
# Three lines of non-changing comments so that
# the commit queue can handle CLs rolling Skia
# and V8 without interference from each other.
Expand Down
11 changes: 9 additions & 2 deletions skia/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ source_set("skia_opts") {
"//third_party/skia/src/opts/SkUtils_opts_SSE2.cpp",
"//third_party/skia/src/opts/SkXfermode_opts_SSE2.cpp",

# SSE 3
# SSSE 3
"//third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp",

# Chrome-specific.
Expand All @@ -549,8 +549,15 @@ source_set("skia_opts") {
"//third_party/skia/include/core/SkTypes.h",
]

# SSE 4
if (cpu_arch == "x86") {
sources += [ "//third_party/skia/src/opts/SkBlitRow_opts_SSE4_asm.S" ]
} else { # x64
sources += [ "//third_party/skia/src/opts/SkBlitRow_opts_SSE4_x64_asm.S" ]
}

if (is_linux || is_mac) {
cflags += [ "-mssse3" ] # Note third 's'.
cflags += [ "-msse4" ]
}
} else if (cpu_arch == "arm") {
sources = [
Expand Down
38 changes: 38 additions & 0 deletions skia/skia_library_opts.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
],
'dependencies': [
'skia_opts_ssse3',
'skia_opts_sse4',
],
}],
[ 'target_arch == "arm"', {
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 1749589

Please sign in to comment.