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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 #error Read the comment at this location | 215 #error Read the comment at this location |
216 #endif | 216 #endif |
217 | 217 |
218 #endif | 218 #endif |
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 | |
226 // tracing. | |
227 // #define SK_USER_TRACE_INCLUDE_FILE "skia/ext/skia_trace_shim.h" | |
228 | |
229 #ifndef SK_ATOMICS_PLATFORM_H | 225 #ifndef SK_ATOMICS_PLATFORM_H |
230 # if defined(SK_BUILD_FOR_WIN) | 226 # if defined(SK_BUILD_FOR_WIN) |
231 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_win.h" | 227 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_win.h" |
232 # elif defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) | 228 # elif defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) |
233 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_android.
h" | 229 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_android.
h" |
234 # else | 230 # else |
235 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_sync.h" | 231 # define SK_ATOMICS_PLATFORM_H "third_party/skia/src/ports/SkAtomics_sync.h" |
236 # endif | 232 # endif |
237 #endif | 233 #endif |
238 | 234 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 | 284 |
289 // Turns on new (nicer, hopefully faster) SkPicture backend. | 285 // Turns on new (nicer, hopefully faster) SkPicture backend. |
290 #define SK_PICTURE_USE_SK_RECORD 1 | 286 #define SK_PICTURE_USE_SK_RECORD 1 |
291 | 287 |
292 // Run a few optimization passes over the SkRecord after recording. | 288 // Run a few optimization passes over the SkRecord after recording. |
293 #define SK_PICTURE_OPTIMIZE_SK_RECORD 1 | 289 #define SK_PICTURE_OPTIMIZE_SK_RECORD 1 |
294 | 290 |
295 // ===== End Chrome-specific definitions ===== | 291 // ===== End Chrome-specific definitions ===== |
296 | 292 |
297 #endif | 293 #endif |
OLD | NEW |