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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 #endif | 219 #endif |
220 | 220 |
221 #ifndef SK_IGNORE_GPU_DITHER | 221 #ifndef SK_IGNORE_GPU_DITHER |
222 # define SK_IGNORE_GPU_DITHER | 222 # define SK_IGNORE_GPU_DITHER |
223 #endif | 223 #endif |
224 | 224 |
225 #ifndef SK_SUPPORT_LEGACY_SHADERBITMAPTYPE | 225 #ifndef SK_SUPPORT_LEGACY_SHADERBITMAPTYPE |
226 # define SK_SUPPORT_LEGACY_SHADERBITMAPTYPE | 226 # define SK_SUPPORT_LEGACY_SHADERBITMAPTYPE |
227 #endif | 227 #endif |
228 | 228 |
| 229 #ifndef SK_SAVE_LAYER_BOUNDS_ARE_FILTERED |
| 230 # define SK_SAVE_LAYER_BOUNDS_ARE_FILTERED |
| 231 #endif |
| 232 |
229 ///////////////////////// Imported from BUILD.gn and skia_common.gypi | 233 ///////////////////////// Imported from BUILD.gn and skia_common.gypi |
230 | 234 |
231 /* In some places Skia can use static initializers for global initialization, | 235 /* In some places Skia can use static initializers for global initialization, |
232 * 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. |
233 */ | 237 */ |
234 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 0 | 238 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 0 |
235 | 239 |
236 /* 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 |
237 * all filters used in Blink support the optimized path properly | 241 * all filters used in Blink support the optimized path properly |
238 */ | 242 */ |
239 #define SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION | 243 #define SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION |
240 | 244 |
241 /* This flag forces Skia not to use typographic metrics with GDI. | 245 /* This flag forces Skia not to use typographic metrics with GDI. |
242 */ | 246 */ |
243 #define SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS | 247 #define SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS |
244 | 248 |
245 #define SK_IGNORE_BLURRED_RRECT_OPT | 249 #define SK_IGNORE_BLURRED_RRECT_OPT |
246 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE | 250 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE |
247 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT | 251 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT |
248 | 252 |
249 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 | 253 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 |
250 #define SK_ENABLE_INST_COUNT 0 | 254 #define SK_ENABLE_INST_COUNT 0 |
251 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" | 255 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" |
252 | 256 |
253 // ===== End Chrome-specific definitions ===== | 257 // ===== End Chrome-specific definitions ===== |
254 | 258 |
255 #endif | 259 #endif |
OLD | NEW |