OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 # This gyp file contains the platform-specific optimizations for Skia | 6 # This gyp file contains the platform-specific optimizations for Skia |
7 { | 7 { |
8 'targets': [ | 8 'targets': [ |
9 # Due to an unfortunate intersection of lameness between gcc and gyp, | 9 # Due to an unfortunate intersection of lameness between gcc and gyp, |
10 # we have to build the *_SSE2.cpp files in a separate target. The | 10 # we have to build the *_SSE2.cpp files in a separate target. The |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 }], | 196 }], |
197 [ 'OS == "win"', { | 197 [ 'OS == "win"', { |
198 'include_dirs': [ | 198 'include_dirs': [ |
199 'config/win', | 199 'config/win', |
200 ], | 200 ], |
201 'direct_dependent_settings': { | 201 'direct_dependent_settings': { |
202 'include_dirs': [ | 202 'include_dirs': [ |
203 'config/win', | 203 'config/win', |
204 ], | 204 ], |
205 }, | 205 }, |
| 206 'defines' : [ |
| 207 'SK_CPU_SSE_LEVEL=31' |
| 208 ], |
206 }], | 209 }], |
207 [ 'target_arch != "arm" and target_arch != "arm64" and \ | 210 [ 'target_arch != "arm" and target_arch != "arm64" and \ |
208 target_arch != "mipsel"', { | 211 target_arch != "mipsel"', { |
209 'sources': [ | 212 'sources': [ |
210 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp', | 213 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp', |
211 ], | 214 ], |
212 }], | 215 }], |
213 ], | 216 ], |
214 }, | 217 }, |
215 # For the same lame reasons as what is done for skia_opts, we also have to | 218 # For the same lame reasons as what is done for skia_opts, we also have to |
(...skipping 17 matching lines...) Expand all Loading... |
233 [ 'OS in ["linux", "freebsd", "openbsd", "solaris", "android"]', { | 236 [ 'OS in ["linux", "freebsd", "openbsd", "solaris", "android"]', { |
234 'cflags': [ | 237 'cflags': [ |
235 '-msse4.1', | 238 '-msse4.1', |
236 ], | 239 ], |
237 }], | 240 }], |
238 [ 'OS == "mac"', { | 241 [ 'OS == "mac"', { |
239 'xcode_settings': { | 242 'xcode_settings': { |
240 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES', | 243 'GCC_ENABLE_SSE41_EXTENSIONS': 'YES', |
241 }, | 244 }, |
242 }], | 245 }], |
| 246 [ 'OS == "win"', { |
| 247 'defines' : [ |
| 248 'SK_CPU_SSE_LEVEL=41' |
| 249 ], |
| 250 }], |
243 [ 'target_arch == "x64"', { | 251 [ 'target_arch == "x64"', { |
244 'sources': [ | 252 'sources': [ |
245 '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_x64_asm.S', | 253 '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_x64_asm.S', |
246 ], | 254 ], |
247 }], | 255 }], |
248 [ 'target_arch == "ia32"', { | 256 [ 'target_arch == "ia32"', { |
249 'sources': [ | 257 'sources': [ |
250 '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_asm.S', | 258 '../third_party/skia/src/opts/SkBlitRow_opts_SSE4_asm.S', |
251 ], | 259 ], |
252 }], | 260 }], |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 'defines': [ | 342 'defines': [ |
335 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', | 343 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
336 ], | 344 ], |
337 }], | 345 }], |
338 ], | 346 ], |
339 }, | 347 }, |
340 ], | 348 ], |
341 }], | 349 }], |
342 ], | 350 ], |
343 } | 351 } |
OLD | NEW |