OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 The Android Open Source Project | 2 * Copyright (C) 2006 The Android Open Source Project |
3 * | 3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
7 * | 7 * |
8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * | 9 * |
10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 // The default crash macro writes to badbeef which can cause some strange | 220 // The default crash macro writes to badbeef which can cause some strange |
221 // problems. Instead, pipe this through to the logging function as a fatal | 221 // problems. Instead, pipe this through to the logging function as a fatal |
222 // assertion. | 222 // assertion. |
223 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") | 223 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") |
224 | 224 |
225 // Uncomment the following line to forward skia trace events to Chrome | 225 // Uncomment the following line to forward skia trace events to Chrome |
226 // tracing. | 226 // tracing. |
227 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h" | 227 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h" |
228 | 228 |
229 #ifndef SK_ATOMICS_PLATFORM_H | |
230 # if defined(SK_BUILD_FOR_WIN) | |
231 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_win.h" | |
232 # elif defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) | |
233 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_android.
h" | |
234 # else | |
235 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_sync.h" | |
236 # endif | |
237 #endif | |
238 | |
239 #ifndef SK_MUTEX_PLATFORM_H | |
240 # if defined(SK_BUILD_FOR_WIN) | |
241 # define SK_MUTEX_PLATFORM_H "third_party/skia/src/ports/SkMutex_win.h" | |
242 # else | |
243 # define SK_MUTEX_PLATFORM_H "third_party/skia/src/ports/SkMutex_pthread.h" | |
244 # endif | |
245 #endif | |
246 | |
247 // ===== End Chrome-specific definitions ===== | 229 // ===== End Chrome-specific definitions ===== |
248 | 230 |
249 #endif | 231 #endif |
OLD | NEW |