| 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 | |
| 86 | 82 |
| 87 /* If, in debugging mode, Skia needs to stop (presumably to invoke a debugger) | 83 /* If, in debugging mode, Skia needs to stop (presumably to invoke a debugger) |
| 88 it will call SK_CRASH(). If this is not defined it, it is defined in | 84 it will call SK_CRASH(). If this is not defined it, it is defined in |
| 89 SkPostConfig.h to write to an illegal address | 85 SkPostConfig.h to write to an illegal address |
| 90 */ | 86 */ |
| 91 //#define SK_CRASH() *(int *)(uintptr_t)0 = 0 | 87 //#define SK_CRASH() *(int *)(uintptr_t)0 = 0 |
| 92 | 88 |
| 93 | 89 |
| 94 /* preconfig will have attempted to determine the endianness of the system, | 90 /* preconfig will have attempted to determine the endianness of the system, |
| 95 but you can change these mutually exclusive flags here. | 91 but you can change these mutually exclusive flags here. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE | 286 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE |
| 291 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT | 287 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT |
| 292 | 288 |
| 293 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 | 289 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 |
| 294 #define SK_ENABLE_INST_COUNT 0 | 290 #define SK_ENABLE_INST_COUNT 0 |
| 295 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" | 291 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" |
| 296 | 292 |
| 297 // ===== End Chrome-specific definitions ===== | 293 // ===== End Chrome-specific definitions ===== |
| 298 | 294 |
| 299 #endif | 295 #endif |
| OLD | NEW |