| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 #define SK_BUILD_FOR_WIN | 190 #define SK_BUILD_FOR_WIN |
| 191 | 191 |
| 192 // Skia uses this deprecated bzero function to fill zeros into a string. | 192 // Skia uses this deprecated bzero function to fill zeros into a string. |
| 193 #define bzero(str, len) memset(str, 0, len) | 193 #define bzero(str, len) memset(str, 0, len) |
| 194 | 194 |
| 195 #elif defined(SK_BUILD_FOR_MAC) | 195 #elif defined(SK_BUILD_FOR_MAC) |
| 196 | 196 |
| 197 #define SK_CPU_LENDIAN | 197 #define SK_CPU_LENDIAN |
| 198 #undef SK_CPU_BENDIAN | 198 #undef SK_CPU_BENDIAN |
| 199 | 199 |
| 200 #elif defined(SK_BUILD_FOR_UNIX) | 200 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) |
| 201 | 201 |
| 202 // Prefer FreeType's emboldening algorithm to Skia's | 202 // Prefer FreeType's emboldening algorithm to Skia's |
| 203 // TODO: skia used to just use hairline, but has improved since then, so | 203 // TODO: skia used to just use hairline, but has improved since then, so |
| 204 // we should revisit this choice... | 204 // we should revisit this choice... |
| 205 #define SK_USE_FREETYPE_EMBOLDEN | 205 #define SK_USE_FREETYPE_EMBOLDEN |
| 206 | 206 |
| 207 #ifdef SK_CPU_BENDIAN | 207 #if defined(SK_BUILD_FOR_UNIX) && defined(SK_CPU_BENDIAN) |
| 208 // Above we set the order for ARGB channels in registers. I suspect that, on | 208 // Above we set the order for ARGB channels in registers. I suspect that, on |
| 209 // big endian machines, you can keep this the same and everything will work. | 209 // big endian machines, you can keep this the same and everything will work. |
| 210 // The in-memory order will be different, of course, but as long as everything | 210 // The in-memory order will be different, of course, but as long as everything |
| 211 // is reading memory as words rather than bytes, it will all work. However, if | 211 // is reading memory as words rather than bytes, it will all work. However, if |
| 212 // you find that colours are messed up I thought that I would leave a helpful | 212 // you find that colours are messed up I thought that I would leave a helpful |
| 213 // locator for you. Also see the comments in | 213 // locator for you. Also see the comments in |
| 214 // base/gfx/bitmap_platform_device_linux.h | 214 // base/gfx/bitmap_platform_device_linux.h |
| 215 #error Read the comment at this location | 215 #error Read the comment at this location |
| 216 #endif | 216 #endif |
| 217 | 217 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 #endif | 270 #endif |
| 271 | 271 |
| 272 // If this goes well, we can have Skia respect DYNAMIC_ANNOTATIONS_ENABLED direc
tly. | 272 // If this goes well, we can have Skia respect DYNAMIC_ANNOTATIONS_ENABLED direc
tly. |
| 273 #if DYNAMIC_ANNOTATIONS_ENABLED | 273 #if DYNAMIC_ANNOTATIONS_ENABLED |
| 274 # define SK_DYNAMIC_ANNOTATIONS_ENABLED 1 | 274 # define SK_DYNAMIC_ANNOTATIONS_ENABLED 1 |
| 275 #endif | 275 #endif |
| 276 | 276 |
| 277 // ===== End Chrome-specific definitions ===== | 277 // ===== End Chrome-specific definitions ===== |
| 278 | 278 |
| 279 #endif | 279 #endif |
| OLD | NEW |