| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #define SK_BUILD_FOR_MAC | 42 #define SK_BUILD_FOR_MAC |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 /* Even if the user only defined the framework variant we still need to build | 47 /* Even if the user only defined the framework variant we still need to build |
| 48 * the default (NDK-compliant) Android code. Therefore, when attempting to | 48 * the default (NDK-compliant) Android code. Therefore, when attempting to |
| 49 * include/exclude something from the framework variant check first that we are | 49 * include/exclude something from the framework variant check first that we are |
| 50 * building for Android then check the status of the framework define. | 50 * building for Android then check the status of the framework define. |
| 51 */ | 51 */ |
| 52 #if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)) && !defined(SK_BUILD_FOR_ANDROID) | 52 #if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) && !defined(SK_BUILD_FOR_ANDROID) |
| 53 #define SK_BUILD_FOR_ANDROID | 53 #define SK_BUILD_FOR_ANDROID |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 | 56 |
| 57 // USE_CHROMIUM_SKIA is defined when building Skia for the Chromium | 57 // USE_CHROMIUM_SKIA is defined when building Skia for the Chromium |
| 58 // browser. | 58 // browser. |
| 59 #if defined(USE_CHROMIUM_SKIA) | 59 #if defined(USE_CHROMIUM_SKIA) |
| 60 #define SK_BUILD_FOR_CHROMIUM | 60 #define SK_BUILD_FOR_CHROMIUM |
| 61 #endif | 61 #endif |
| 62 | 62 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 * | 250 * |
| 251 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. | 251 * NOTE: Clang/ARM (r161757) does not support the 'optimize' attribute. |
| 252 */ | 252 */ |
| 253 #if SK_HAS_ATTRIBUTE(optimize) | 253 #if SK_HAS_ATTRIBUTE(optimize) |
| 254 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) | 254 # define SK_ATTRIBUTE_OPTIMIZE_O1 __attribute__((optimize("O1"))) |
| 255 #else | 255 #else |
| 256 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ | 256 # define SK_ATTRIBUTE_OPTIMIZE_O1 /* nothing */ |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 #endif | 259 #endif |
| OLD | NEW |