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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 #endif | 258 #endif |
259 | 259 |
260 #ifndef SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT | 260 #ifndef SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT |
261 # define SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT | 261 # define SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT |
262 #endif | 262 #endif |
263 | 263 |
264 #ifndef SK_SUPPORT_LEGACY_XFERMODES | 264 #ifndef SK_SUPPORT_LEGACY_XFERMODES |
265 # define SK_SUPPORT_LEGACY_XFERMODES | 265 # define SK_SUPPORT_LEGACY_XFERMODES |
266 #endif | 266 #endif |
267 | 267 |
| 268 #ifndef SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS |
| 269 # define SK_LEGACY_IMAGE_GENERATOR_ENUMS_AND_OPTIONS |
| 270 #endif |
| 271 |
268 ///////////////////////// Imported from BUILD.gn and skia_common.gypi | 272 ///////////////////////// Imported from BUILD.gn and skia_common.gypi |
269 | 273 |
270 /* In some places Skia can use static initializers for global initialization, | 274 /* In some places Skia can use static initializers for global initialization, |
271 * or fall back to lazy runtime initialization. Chrome always wants the latter. | 275 * or fall back to lazy runtime initialization. Chrome always wants the latter. |
272 */ | 276 */ |
273 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 0 | 277 #define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 0 |
274 | 278 |
275 /* Forcing the unoptimized path for the offset image filter in skia until | 279 /* Forcing the unoptimized path for the offset image filter in skia until |
276 * all filters used in Blink support the optimized path properly | 280 * all filters used in Blink support the optimized path properly |
277 */ | 281 */ |
278 #define SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION | 282 #define SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION |
279 | 283 |
280 /* This flag forces Skia not to use typographic metrics with GDI. | 284 /* This flag forces Skia not to use typographic metrics with GDI. |
281 */ | 285 */ |
282 #define SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS | 286 #define SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS |
283 | 287 |
284 #define IGNORE_ROT_AA_RECT_OPT | 288 #define IGNORE_ROT_AA_RECT_OPT |
285 #define SK_IGNORE_BLURRED_RRECT_OPT | 289 #define SK_IGNORE_BLURRED_RRECT_OPT |
286 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE | 290 #define SK_USE_DISCARDABLE_SCALEDIMAGECACHE |
287 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT | 291 #define SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT |
288 | 292 |
289 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 | 293 #define SK_ATTR_DEPRECATED SK_NOTHING_ARG1 |
290 #define SK_ENABLE_INST_COUNT 0 | 294 #define SK_ENABLE_INST_COUNT 0 |
291 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" | 295 #define GR_GL_CUSTOM_SETUP_HEADER "GrGLConfig_chrome.h" |
292 | 296 |
293 // ===== End Chrome-specific definitions ===== | 297 // ===== End Chrome-specific definitions ===== |
294 | 298 |
295 #endif | 299 #endif |
OLD | NEW |