| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 #endif | 223 #endif |
| 224 | 224 |
| 225 #ifndef SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT | 225 #ifndef SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT |
| 226 # define SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT | 226 # define SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT |
| 227 #endif | 227 #endif |
| 228 | 228 |
| 229 #ifndef SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS | 229 #ifndef SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS |
| 230 # define SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS | 230 # define SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS |
| 231 #endif | 231 #endif |
| 232 | 232 |
| 233 #ifndef SK_LEGACY_IMAGE_FILTER_CROP_RECT_EDGES | |
| 234 # define SK_LEGACY_IMAGE_FILTER_CROP_RECT_EDGES | |
| 235 #endif | |
| 236 | |
| 237 ///////////////////////// Imported from BUILD.gn and skia_common.gypi | 233 ///////////////////////// Imported from BUILD.gn and skia_common.gypi |
| 238 | 234 |
| 239 /* In some places Skia can use static initializers for global initialization, | 235 /* In some places Skia can use static initializers for global initialization, |
| 240 * or fall back to lazy runtime initialization. Chrome always wants the latter. | 236 * or fall back to lazy runtime initialization. Chrome always wants the latter. |
| 241 */ | 237 */ |
| 242 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 0 | 238 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 0 |
| 243 | 239 |
| 244 /* Forcing the unoptimized path for the offset image filter in skia until | 240 /* Forcing the unoptimized path for the offset image filter in skia until |
| 245 * all filters used in Blink support the optimized path properly | 241 * all filters used in Blink support the optimized path properly |
| 246 */ | 242 */ |
| 247 #define SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION | 243 #define SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION |
| 248 | 244 |
| 249 /* This flag forces Skia not to use typographic metrics with GDI. | 245 /* This flag forces Skia not to use typographic metrics with GDI. |
| 250 */ | 246 */ |
| 251 #define SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS | 247 #define SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS |
| 252 | 248 |
| 253 #define IGNORE_ROT_AA_RECT_OPT | 249 #define IGNORE_ROT_AA_RECT_OPT |
| 254 #define SK_IGNORE_BLURRED_RRECT_OPT | 250 #define SK_IGNORE_BLURRED_RRECT_OPT |
| 255 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE | 251 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE |
| 256 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT | 252 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT |
| 257 | 253 |
| 258 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 | 254 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 |
| 259 #define SK_ENABLE_INST_COUNT 0 | 255 #define SK_ENABLE_INST_COUNT 0 |
| 260 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" | 256 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" |
| 261 | 257 |
| 262 // ===== End Chrome-specific definitions ===== | 258 // ===== End Chrome-specific definitions ===== |
| 263 | 259 |
| 264 #endif | 260 #endif |
| OLD | NEW |