OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // IWYU pragma: private, include "SkTypes.h" | 8 // IWYU pragma: private, include "SkTypes.h" |
9 | 9 |
10 #ifndef SkPostConfig_DEFINED | 10 #ifndef SkPostConfig_DEFINED |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 # endif | 333 # endif |
334 #endif | 334 #endif |
335 | 335 |
336 ////////////////////////////////////////////////////////////////////// | 336 ////////////////////////////////////////////////////////////////////// |
337 | 337 |
338 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 338 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
339 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 | 339 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 |
340 #endif | 340 #endif |
341 | 341 |
342 ////////////////////////////////////////////////////////////////////// | 342 ////////////////////////////////////////////////////////////////////// |
| 343 #ifndef SK_INCLUDE_DEPRECATED_XFERMODES |
| 344 # define SK_INCLUDE_DEPRECATED_XFERMODES 1 |
| 345 #endif |
| 346 |
| 347 ////////////////////////////////////////////////////////////////////// |
343 | 348 |
344 #ifndef SK_EGL | 349 #ifndef SK_EGL |
345 # if defined(SK_BUILD_FOR_ANDROID) | 350 # if defined(SK_BUILD_FOR_ANDROID) |
346 # define SK_EGL 1 | 351 # define SK_EGL 1 |
347 # else | 352 # else |
348 # define SK_EGL 0 | 353 # define SK_EGL 0 |
349 # endif | 354 # endif |
350 #endif | 355 #endif |
351 | 356 |
352 ////////////////////////////////////////////////////////////////////// | 357 ////////////////////////////////////////////////////////////////////// |
353 | 358 |
354 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) | 359 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) |
355 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" | 360 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" |
356 #elif defined(SK_GAMMA_SRGB) | 361 #elif defined(SK_GAMMA_SRGB) |
357 # define SK_GAMMA_EXPONENT (0.0f) | 362 # define SK_GAMMA_EXPONENT (0.0f) |
358 #elif !defined(SK_GAMMA_EXPONENT) | 363 #elif !defined(SK_GAMMA_EXPONENT) |
359 # define SK_GAMMA_EXPONENT (2.2f) | 364 # define SK_GAMMA_EXPONENT (2.2f) |
360 #endif | 365 #endif |
361 | 366 |
362 ////////////////////////////////////////////////////////////////////// | 367 ////////////////////////////////////////////////////////////////////// |
363 | 368 |
364 #ifndef GR_TEST_UTILS | 369 #ifndef GR_TEST_UTILS |
365 # define GR_TEST_UTILS 1 | 370 # define GR_TEST_UTILS 1 |
366 #endif | 371 #endif |
367 | 372 |
368 #endif // SkPostConfig_DEFINED | 373 #endif // SkPostConfig_DEFINED |
OLD | NEW |