| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 #define SK_G32_SHIFT 8 | 196 #define SK_G32_SHIFT 8 |
| 197 #define SK_B32_SHIFT 0 | 197 #define SK_B32_SHIFT 0 |
| 198 | 198 |
| 199 #endif | 199 #endif |
| 200 | 200 |
| 201 // The default crash macro writes to badbeef which can cause some strange | 201 // The default crash macro writes to badbeef which can cause some strange |
| 202 // problems. Instead, pipe this through to the logging function as a fatal | 202 // problems. Instead, pipe this through to the logging function as a fatal |
| 203 // assertion. | 203 // assertion. |
| 204 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") | 204 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") |
| 205 | 205 |
| 206 // TODO(brettw) bug 6373: Re-enable Skia assertions. This is blocked on fixing | |
| 207 // some of our transparency handling which generates purposely-invalid colors, | |
| 208 // in turn causing assertions. | |
| 209 //#ifndef NDEBUG | |
| 210 // #define SK_DEBUG | |
| 211 // #undef SK_RELEASE | |
| 212 #undef SK_SUPPORT_UNITTEST // This is only necessary in debug mode since | |
| 213 // we've disabled assertions. When we re-enable | |
| 214 // them, this line can be removed. | |
| 215 //#else | |
| 216 #define SK_RELEASE | |
| 217 #undef SK_DEBUG | |
| 218 //#endif | |
| 219 | |
| 220 // For now (and to avoid rebaselining 1700+ tests), we'll use the old version | 206 // For now (and to avoid rebaselining 1700+ tests), we'll use the old version |
| 221 // of SkAlpha255To256. | 207 // of SkAlpha255To256. |
| 222 #define SK_USE_OLD_255_TO_256 | 208 #define SK_USE_OLD_255_TO_256 |
| 223 | 209 |
| 224 // ===== End Chrome-specific definitions ===== | 210 // ===== End Chrome-specific definitions ===== |
| 225 | 211 |
| 226 #endif | 212 #endif |
| OLD | NEW |