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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 not, define this to the appropriate type. | 106 not, define this to the appropriate type. |
107 */ | 107 */ |
108 //#define SkLONGLONG int64_t | 108 //#define SkLONGLONG int64_t |
109 | 109 |
110 | 110 |
111 /* Some envorinments do not suport writable globals (eek!). If yours does not, | 111 /* Some envorinments do not suport writable globals (eek!). If yours does not, |
112 define this flag. | 112 define this flag. |
113 */ | 113 */ |
114 //#define SK_USE_RUNTIME_GLOBALS | 114 //#define SK_USE_RUNTIME_GLOBALS |
115 | 115 |
| 116 /* If zlib is available and you want to support the flate compression |
| 117 algorithm (used in PDF generation), define SK_ZLIB_INCLUDE to be the |
| 118 include path. |
| 119 */ |
| 120 //#define SK_ZLIB_INCLUDE <zlib.h> |
| 121 #if defined(USE_SYSTEM_ZLIB) |
| 122 #define SK_ZLIB_INCLUDE <zlib.h> |
| 123 #else |
| 124 #define SK_ZLIB_INCLUDE "third_party/zlib/zlib.h" |
| 125 #endif |
| 126 |
| 127 /* Define this to allow PDF scalars above 32k. The PDF/A spec doesn't allow |
| 128 them, but modern PDF interpreters should handle them just fine. |
| 129 */ |
| 130 //#define SK_ALLOW_LARGE_PDF_SCALARS |
| 131 |
| 132 /* Define this to remove dimension checks on bitmaps. Not all blits will be |
| 133 correct yet, so this is mostly for debugging the implementation. |
| 134 */ |
| 135 //#define SK_ALLOW_OVER_32K_BITMAPS |
| 136 |
116 | 137 |
117 /* To write debug messages to a console, skia will call SkDebugf(...) following | 138 /* To write debug messages to a console, skia will call SkDebugf(...) following |
118 printf conventions (e.g. const char* format, ...). If you want to redirect | 139 printf conventions (e.g. const char* format, ...). If you want to redirect |
119 this to something other than printf, define yours here | 140 this to something other than printf, define yours here |
120 */ | 141 */ |
121 //#define SkDebugf(...) MyFunction(__VA_ARGS__) | 142 //#define SkDebugf(...) MyFunction(__VA_ARGS__) |
122 | 143 |
123 | 144 |
124 /* If SK_DEBUG is defined, then you can optionally define SK_SUPPORT_UNITTEST | 145 /* If SK_DEBUG is defined, then you can optionally define SK_SUPPORT_UNITTEST |
125 which will run additional self-tests at startup. These can take a long time, | 146 which will run additional self-tests at startup. These can take a long time, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 #endif | 225 #endif |
205 | 226 |
206 // The default crash macro writes to badbeef which can cause some strange | 227 // The default crash macro writes to badbeef which can cause some strange |
207 // problems. Instead, pipe this through to the logging function as a fatal | 228 // problems. Instead, pipe this through to the logging function as a fatal |
208 // assertion. | 229 // assertion. |
209 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") | 230 #define SK_CRASH() SkDebugf_FileLine(__FILE__, __LINE__, true, "SK_CRASH") |
210 | 231 |
211 // ===== End Chrome-specific definitions ===== | 232 // ===== End Chrome-specific definitions ===== |
212 | 233 |
213 #endif | 234 #endif |
OLD | NEW |