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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPreConfig.h
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index 41670317d328bd67310871da36234b96015463f8..5c653f5207d4ff22552226bc5e7737bed4b11b8f 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -149,7 +149,7 @@
//////////////////////////////////////////////////////////////////////
// ARM defines
-#if defined(__arm__) && !defined(__APPLE__)
+#if defined(__arm__) && (!defined(__APPLE__) || !TARGET_IPHONE_SIMULATOR)
#define SK_CPU_ARM
#if defined(__GNUC__)
@@ -180,7 +180,8 @@
#endif
#endif
-#if defined(__aarch64__) && !defined(__APPLE__)
+// Disable ARM64 optimizations for iOS due to complications regarding gyp and iOS.
+#if defined(__aarch64__) && !defined(SK_BUILD_FOR_IOS)
#define SK_CPU_ARM64
#endif
« 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