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

Side by Side Diff: skia/skia_library_opts.gyp

Issue 52453004: Add SSE2 versions of Skia morphology filters to the build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android build fix Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 26 matching lines...) Expand all
37 ], 37 ],
38 'conditions': [ 38 'conditions': [
39 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ 39 [ 'os_posix == 1 and OS != "mac" and OS != "android" and \
40 target_arch != "arm" and target_arch != "mipsel"', { 40 target_arch != "arm" and target_arch != "mipsel"', {
41 'cflags': [ 41 'cflags': [
42 '-msse2', 42 '-msse2',
43 ], 43 ],
44 }], 44 }],
45 [ 'target_arch != "arm" and target_arch != "mipsel"', { 45 [ 'target_arch != "arm" and target_arch != "mipsel"', {
46 'sources': [ 46 'sources': [
47 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp',
47 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', 48 '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp',
48 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', 49 '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp',
49 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp', 50 '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp',
51 '../third_party/skia/src/opts/SkMorphology_opts_SSE2.cpp',
50 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp', 52 '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp',
51 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', 53 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp',
52 '../third_party/skia/src/opts/SkBitmapFilter_opts_SSE2.cpp',
53 ], 54 ],
54 'dependencies': [ 55 'dependencies': [
55 'skia_opts_ssse3', 56 'skia_opts_ssse3',
56 ], 57 ],
57 }], 58 }],
58 [ 'target_arch == "arm"', { 59 [ 'target_arch == "arm"', {
59 'conditions': [ 60 'conditions': [
60 [ 'arm_version >= 7 and arm_neon == 1', { 61 [ 'arm_version >= 7 and arm_neon == 1', {
61 'defines': [ 62 'defines': [
62 '__ARM_HAVE_NEON', 63 '__ARM_HAVE_NEON',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 }], 99 }],
99 [ 'target_arch == "arm" and (arm_version < 7 or (arm_neon == 0 and arm_n eon_optional == 1))', { 100 [ 'target_arch == "arm" and (arm_version < 7 or (arm_neon == 0 and arm_n eon_optional == 1))', {
100 'sources': [ 101 'sources': [
101 '../third_party/skia/src/opts/memset.arm.S', 102 '../third_party/skia/src/opts/memset.arm.S',
102 ], 103 ],
103 }], 104 }],
104 [ 'target_arch == "arm" and arm_version < 6', { 105 [ 'target_arch == "arm" and arm_version < 6', {
105 'sources': [ 106 'sources': [
106 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', 107 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp',
107 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', 108 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
109 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp',
108 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', 110 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
109 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', 111 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp',
110 ], 112 ],
111 }], 113 }],
112 [ 'target_arch == "arm" and arm_version >= 6', { 114 [ 'target_arch == "arm" and arm_version >= 6', {
113 'sources': [ 115 'sources': [
114 '../third_party/skia/src/opts/SkBlitMask_opts_arm.cpp', 116 '../third_party/skia/src/opts/SkBlitMask_opts_arm.cpp',
115 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp', 117 '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp',
116 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h', 118 '../third_party/skia/src/opts/SkBlitRow_opts_arm.h',
119 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp',
117 '../third_party/skia/src/opts/opts_check_arm.cpp', 120 '../third_party/skia/src/opts/opts_check_arm.cpp',
118 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', 121 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp',
119 ], 122 ],
120 }], 123 }],
121 [ 'target_arch == "mipsel"',{ 124 [ 'target_arch == "mipsel"',{
122 'cflags': [ 125 'cflags': [
123 '-fomit-frame-pointer', 126 '-fomit-frame-pointer',
124 ], 127 ],
125 'sources': [ 128 'sources': [
126 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', 129 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp',
127 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', 130 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp',
128 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', 131 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
132 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp',
129 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', 133 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
130 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', 134 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp',
131 ], 135 ],
132 }], 136 }],
133 ], 137 ],
134 }, 138 },
135 # For the same lame reasons as what is done for skia_opts, we have to 139 # For the same lame reasons as what is done for skia_opts, we have to
136 # create another target specifically for SSSE3 code as we would not want 140 # create another target specifically for SSSE3 code as we would not want
137 # to compile the SSE2 code with -mssse3 which would potentially allow 141 # to compile the SSE2 code with -mssse3 which would potentially allow
138 # gcc to generate SSSE3 code. 142 # gcc to generate SSSE3 code.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 'skia_common.gypi', 185 'skia_common.gypi',
182 ], 186 ],
183 'include_dirs': [ 187 'include_dirs': [
184 '../third_party/skia/include/core', 188 '../third_party/skia/include/core',
185 '../third_party/skia/src/core', 189 '../third_party/skia/src/core',
186 ], 190 ],
187 'sources': [ 191 'sources': [
188 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', 192 '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp',
189 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp', 193 '../third_party/skia/src/opts/SkBlitMask_opts_none.cpp',
190 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', 194 '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
195 '../third_party/skia/src/opts/SkMorphology_opts_none.cpp',
191 '../third_party/skia/src/opts/SkUtils_opts_none.cpp', 196 '../third_party/skia/src/opts/SkUtils_opts_none.cpp',
192 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp', 197 '../third_party/skia/src/opts/SkXfermode_opts_none.cpp',
193 ], 198 ],
194 }, 199 },
195 ], 200 ],
196 'conditions': [ 201 'conditions': [
197 # NEON code must be compiled with -mfpu=neon which also affects scalar 202 # NEON code must be compiled with -mfpu=neon which also affects scalar
198 # code. To support dynamic NEON code paths, we need to build all 203 # code. To support dynamic NEON code paths, we need to build all
199 # NEON-specific sources in a separate static library. The situation 204 # NEON-specific sources in a separate static library. The situation
200 # is very similar to the SSSE3 one. 205 # is very similar to the SSSE3 one.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 'defines': [ 250 'defines': [
246 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', 251 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT',
247 ], 252 ],
248 }], 253 }],
249 ], 254 ],
250 }, 255 },
251 ], 256 ],
252 }], 257 }],
253 ], 258 ],
254 } 259 }
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698