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

Side by Side Diff: include/core/SkPreConfig.h

Issue 216823008: Revert to old behavior regarding SK_CPU_ARM and update documentation around SK_CPU_ARM64 on iOS. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPreConfig_DEFINED 10 #ifndef SkPreConfig_DEFINED
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2 142 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2
143 #elif _M_IX86_FP == 1 143 #elif _M_IX86_FP == 1
144 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE1 144 #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE1
145 #endif 145 #endif
146 #endif 146 #endif
147 #endif 147 #endif
148 148
149 ////////////////////////////////////////////////////////////////////// 149 //////////////////////////////////////////////////////////////////////
150 // ARM defines 150 // ARM defines
151 151
152 #if defined(__arm__) && !defined(__APPLE__) 152 #if defined(__arm__) && (!defined(__APPLE__) || !TARGET_IPHONE_SIMULATOR)
153 #define SK_CPU_ARM 153 #define SK_CPU_ARM
154 154
155 #if defined(__GNUC__) 155 #if defined(__GNUC__)
156 #if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \ 156 #if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
157 || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \ 157 || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \
158 || defined(__ARM_ARCH_7EM__) || defined(_ARM_ARCH_7) 158 || defined(__ARM_ARCH_7EM__) || defined(_ARM_ARCH_7)
159 #define SK_ARM_ARCH 7 159 #define SK_ARM_ARCH 7
160 #elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \ 160 #elif defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
161 || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) \ 161 || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) \
162 || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) \ 162 || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) \
(...skipping 10 matching lines...) Expand all
173 #endif 173 #endif
174 174
175 #if defined(__thumb2__) && (SK_ARM_ARCH >= 6) \ 175 #if defined(__thumb2__) && (SK_ARM_ARCH >= 6) \
176 || !defined(__thumb__) && ((SK_ARM_ARCH > 5) || defined(__ARM_AR CH_5E__) \ 176 || !defined(__thumb__) && ((SK_ARM_ARCH > 5) || defined(__ARM_AR CH_5E__) \
177 || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__)) 177 || defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5TEJ__))
178 #define SK_ARM_HAS_EDSP 178 #define SK_ARM_HAS_EDSP
179 #endif 179 #endif
180 #endif 180 #endif
181 #endif 181 #endif
182 182
183 #if defined(__aarch64__) && !defined(__APPLE__) 183 // Disable ARM64 optimizations for iOS due to complications regarding gyp and iO S.
184 #if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS)
184 #define SK_CPU_ARM64 185 #define SK_CPU_ARM64
185 #endif 186 #endif
186 187
187 ////////////////////////////////////////////////////////////////////// 188 //////////////////////////////////////////////////////////////////////
188 189
189 #if !defined(SKIA_IMPLEMENTATION) 190 #if !defined(SKIA_IMPLEMENTATION)
190 #define SKIA_IMPLEMENTATION 0 191 #define SKIA_IMPLEMENTATION 0
191 #endif 192 #endif
192 193
193 #if defined(SKIA_DLL) 194 #if defined(SKIA_DLL)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 * 243 *
243 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. 244 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute.
244 */ 245 */
245 #if SK_HAS_ATTRIBUTE(optimize) 246 #if SK_HAS_ATTRIBUTE(optimize)
246 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) 247 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1")))
247 #else 248 #else
248 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ 249 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */
249 #endif 250 #endif
250 251
251 #endif 252 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698