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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 '-msse2', | 44 '-msse2', |
45 ], | 45 ], |
46 }], | 46 }], |
47 [ 'target_arch != "arm" and target_arch != "mipsel" and \ | 47 [ 'target_arch != "arm" and target_arch != "mipsel" and \ |
48 target_arch != "arm64"', { | 48 target_arch != "arm64"', { |
49 'sources': [ | 49 'sources': [ |
50 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', | 50 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', |
51 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', | 51 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', |
52 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', | 52 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', |
53 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', | 53 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', |
54 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', | 54 '../third_party/skia/src/opts/SkXfermode_opts_SSE2.cpp', |
55 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp', | 55 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp', |
56 '../third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp', | 56 '../third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp', |
57 '../third_party/skia/src/opts/SkBlurImage_opts_SSE2.cpp', | 57 '../third_party/skia/src/opts/SkBlurImage_opts_SSE2.cpp', |
58 ], | 58 ], |
59 'dependencies': [ | 59 'dependencies': [ |
60 'skia_opts_ssse3', | 60 'skia_opts_ssse3', |
61 ], | 61 ], |
62 }], | 62 }], |
63 # TODO(rmcilroy): Add neon support for arm64 - http://crbug.com/354405 | 63 # TODO(rmcilroy): Add neon support for arm64 - http://crbug.com/354405 |
64 [ 'target_arch == "arm"', { | 64 [ 'target_arch == "arm"', { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 136 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', |
137 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', | 137 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', |
138 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 138 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
139 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 139 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
140 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', | 140 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', |
141 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp', | 141 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp', |
142 '../third_party/skia/src/opts/SkBlurImage_opts_none.cpp', | 142 '../third_party/skia/src/opts/SkBlurImage_opts_none.cpp', |
143 ], | 143 ], |
144 }], | 144 }], |
145 [ 'target_arch == "arm64"',{ | 145 [ 'target_arch == "arm64"',{ |
146 # TODO(rmcilroy): Update this once http://crrev.com/143423004/ lands. | |
147 'sources': [ | 146 'sources': [ |
148 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', | 147 '../third_party/skia/src/opts/SkBitmapProcState_arm_neon.cpp', |
149 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', | 148 '../third_party/skia/src/opts/SkBitmapProcState_matrixProcs_neon.cpp
', |
| 149 '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp', |
| 150 '../third_party/skia/src/opts/SkBlitMask_opts_arm.cpp', |
| 151 '../third_party/skia/src/opts/SkBlitMask_opts_arm_neon.cpp', |
150 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', | 152 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', |
| 153 '../third_party/skia/src/opts/SkBlurImage_opts_arm.cpp', |
| 154 '../third_party/skia/src/opts/SkBlurImage_opts_neon.cpp', |
| 155 '../third_party/skia/src/opts/SkMorphology_opts_arm.cpp', |
| 156 '../third_party/skia/src/opts/SkMorphology_opts_neon.cpp', |
151 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', | 157 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', |
152 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', | 158 '../third_party/skia/src/opts/SkXfermode_opts_arm.cpp', |
153 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp', | 159 '../third_party/skia/src/opts/SkXfermode_opts_arm_neon.cpp', |
154 '../third_party/skia/src/opts/SkBlurImage_opts_none.cpp', | |
155 ], | 160 ], |
156 }], | 161 }], |
157 ], | 162 ], |
158 }, | 163 }, |
159 # For the same lame reasons as what is done for skia_opts, we have to | 164 # For the same lame reasons as what is done for skia_opts, we have to |
160 # create another target specifically for SSSE3 code as we would not want | 165 # create another target specifically for SSSE3 code as we would not want |
161 # to compile the SSE2 code with -mssse3 which would potentially allow | 166 # to compile the SSE2 code with -mssse3 which would potentially allow |
162 # gcc to generate SSSE3 code. | 167 # gcc to generate SSSE3 code. |
163 { | 168 { |
164 'target_name': 'skia_opts_ssse3', | 169 'target_name': 'skia_opts_ssse3', |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 'defines': [ | 283 'defines': [ |
279 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', | 284 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
280 ], | 285 ], |
281 }], | 286 }], |
282 ], | 287 ], |
283 }, | 288 }, |
284 ], | 289 ], |
285 }], | 290 }], |
286 ], | 291 ], |
287 } | 292 } |
OLD | NEW |