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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 each 32bit pixel is in premultiplied form). This code can be very useful | 72 each 32bit pixel is in premultiplied form). This code can be very useful |
73 during development, but will slow things down in a shipping product. | 73 during development, but will slow things down in a shipping product. |
74 | 74 |
75 By default, these mutually exclusive flags are defined in SkPreConfig.h, | 75 By default, these mutually exclusive flags are defined in SkPreConfig.h, |
76 based on the presence or absence of NDEBUG, but that decision can be changed | 76 based on the presence or absence of NDEBUG, but that decision can be changed |
77 here. | 77 here. |
78 */ | 78 */ |
79 //#define SK_DEBUG | 79 //#define SK_DEBUG |
80 //#define SK_RELEASE | 80 //#define SK_RELEASE |
81 | 81 |
| 82 #ifdef DCHECK_ALWAYS_ON |
| 83 #undef SK_RELEASE |
| 84 #define SK_DEBUG |
| 85 #endif |
82 | 86 |
83 /* If, in debugging mode, Skia needs to stop (presumably to invoke a debugger) | 87 /* If, in debugging mode, Skia needs to stop (presumably to invoke a debugger) |
84 it will call SK_CRASH(). If this is not defined it, it is defined in | 88 it will call SK_CRASH(). If this is not defined it, it is defined in |
85 SkPostConfig.h to write to an illegal address | 89 SkPostConfig.h to write to an illegal address |
86 */ | 90 */ |
87 //#define SK_CRASH() *(int *)(uintptr_t)0 = 0 | 91 //#define SK_CRASH() *(int *)(uintptr_t)0 = 0 |
88 | 92 |
89 | 93 |
90 /* preconfig will have attempted to determine the endianness of the system, | 94 /* preconfig will have attempted to determine the endianness of the system, |
91 but you can change these mutually exclusive flags here. | 95 but you can change these mutually exclusive flags here. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE | 290 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE |
287 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT | 291 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT |
288 | 292 |
289 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 | 293 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 |
290 #define SK_ENABLE_INST_COUNT 0 | 294 #define SK_ENABLE_INST_COUNT 0 |
291 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" | 295 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" |
292 | 296 |
293 // ===== End Chrome-specific definitions ===== | 297 // ===== End Chrome-specific definitions ===== |
294 | 298 |
295 #endif | 299 #endif |
OLD | NEW |