| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 #define SK_BUILD_FOR_WIN | 200 #define SK_BUILD_FOR_WIN |
| 201 | 201 |
| 202 // Skia uses this deprecated bzero function to fill zeros into a string. | 202 // Skia uses this deprecated bzero function to fill zeros into a string. |
| 203 #define bzero(str, len) memset(str, 0, len) | 203 #define bzero(str, len) memset(str, 0, len) |
| 204 | 204 |
| 205 #elif defined(SK_BUILD_FOR_MAC) | 205 #elif defined(SK_BUILD_FOR_MAC) |
| 206 | 206 |
| 207 #define SK_CPU_LENDIAN | 207 #define SK_CPU_LENDIAN |
| 208 #undef SK_CPU_BENDIAN | 208 #undef SK_CPU_BENDIAN |
| 209 | 209 |
| 210 #elif defined(SK_BUILD_FOR_UNIX) | 210 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) |
| 211 | 211 |
| 212 // Prefer FreeType's emboldening algorithm to Skia's | 212 // Prefer FreeType's emboldening algorithm to Skia's |
| 213 // TODO: skia used to just use hairline, but has improved since then, so | 213 // TODO: skia used to just use hairline, but has improved since then, so |
| 214 // we should revisit this choice... | 214 // we should revisit this choice... |
| 215 #define SK_USE_FREETYPE_EMBOLDEN | 215 #define SK_USE_FREETYPE_EMBOLDEN |
| 216 | 216 |
| 217 #ifdef SK_CPU_BENDIAN | 217 #if defined(SK_BUILD_FOR_UNIX) && defined(SK_CPU_BENDIAN) |
| 218 // Above we set the order for ARGB channels in registers. I suspect that, on | 218 // Above we set the order for ARGB channels in registers. I suspect that, on |
| 219 // big endian machines, you can keep this the same and everything will work. | 219 // big endian machines, you can keep this the same and everything will work. |
| 220 // The in-memory order will be different, of course, but as long as everything | 220 // The in-memory order will be different, of course, but as long as everything |
| 221 // is reading memory as words rather than bytes, it will all work. However, if | 221 // is reading memory as words rather than bytes, it will all work. However, if |
| 222 // you find that colours are messed up I thought that I would leave a helpful | 222 // you find that colours are messed up I thought that I would leave a helpful |
| 223 // locator for you. Also see the comments in | 223 // locator for you. Also see the comments in |
| 224 // base/gfx/bitmap_platform_device_linux.h | 224 // base/gfx/bitmap_platform_device_linux.h |
| 225 #error Read the comment at this location | 225 #error Read the comment at this location |
| 226 #endif | 226 #endif |
| 227 | 227 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 #endif | 260 #endif |
| 261 | 261 |
| 262 #ifndef SK_SUPPORT_LEGACY_GETDEVICE | 262 #ifndef SK_SUPPORT_LEGACY_GETDEVICE |
| 263 # define SK_SUPPORT_LEGACY_GETDEVICE | 263 # define SK_SUPPORT_LEGACY_GETDEVICE |
| 264 #endif | 264 #endif |
| 265 | 265 |
| 266 #ifndef SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS | 266 #ifndef SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS |
| 267 # define SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS | 267 # define SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS |
| 268 #endif | 268 #endif |
| 269 | 269 |
| 270 #ifndef SK_SUPPORT_LEGACY_GRADIENT_PRECISION | |
| 271 # define SK_SUPPORT_LEGACY_GRADIENT_PRECISION | |
| 272 #endif | |
| 273 | |
| 274 #ifndef SK_IGNORE_ETC1_SUPPORT | 270 #ifndef SK_IGNORE_ETC1_SUPPORT |
| 275 # define SK_IGNORE_ETC1_SUPPORT | 271 # define SK_IGNORE_ETC1_SUPPORT |
| 276 #endif | 272 #endif |
| 277 | 273 |
| 278 #ifndef SK_IGNORE_GPU_DITHER | 274 #ifndef SK_IGNORE_GPU_DITHER |
| 279 # define SK_IGNORE_GPU_DITHER | 275 # define SK_IGNORE_GPU_DITHER |
| 280 #endif | 276 #endif |
| 281 | 277 |
| 282 #ifndef SK_SUPPORT_LEGACY_ADDOVAL | 278 #ifndef SK_SUPPORT_LEGACY_ADDOVAL |
| 283 # define SK_SUPPORT_LEGACY_ADDOVAL | 279 # define SK_SUPPORT_LEGACY_ADDOVAL |
| 284 #endif | 280 #endif |
| 285 | 281 |
| 286 #ifndef SK_SUPPORT_LEGACY_ADDRRECT | 282 #ifndef SK_SUPPORT_LEGACY_ADDRRECT |
| 287 # define SK_SUPPORT_LEGACY_ADDRRECT | 283 # define SK_SUPPORT_LEGACY_ADDRRECT |
| 288 #endif | 284 #endif |
| 289 | 285 |
| 290 #ifndef SK_IGNORE_GPU_LAYER_HOISTING | 286 #ifndef SK_IGNORE_GPU_LAYER_HOISTING |
| 291 # define SK_IGNORE_GPU_LAYER_HOISTING | 287 # define SK_IGNORE_GPU_LAYER_HOISTING |
| 292 #endif | 288 #endif |
| 293 | 289 |
| 294 #ifndef SK_SUPPORT_LEGACY_DRAWDATA | |
| 295 # define SK_SUPPORT_LEGACY_DRAWDATA | |
| 296 #endif | |
| 297 | |
| 298 #ifndef SK_SUPPORT_LEGACY_CANVAS_VIRTUAL | |
| 299 # define SK_SUPPORT_LEGACY_CANVAS_VIRTUAL | |
| 300 #endif | |
| 301 | |
| 302 // If this goes well, we can have Skia respect DYNAMIC_ANNOTATIONS_ENABLED direc
tly. | 290 // If this goes well, we can have Skia respect DYNAMIC_ANNOTATIONS_ENABLED direc
tly. |
| 303 #if DYNAMIC_ANNOTATIONS_ENABLED | 291 #if DYNAMIC_ANNOTATIONS_ENABLED |
| 304 # define SK_DYNAMIC_ANNOTATIONS_ENABLED 1 | 292 # define SK_DYNAMIC_ANNOTATIONS_ENABLED 1 |
| 305 #endif | 293 #endif |
| 306 | 294 |
| 307 // ===== End Chrome-specific definitions ===== | 295 // ===== End Chrome-specific definitions ===== |
| 308 | 296 |
| 309 #endif | 297 #endif |
| OLD | NEW |