mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 23:28:07 +02:00
Remove useless pixman version checks
We require pixman >= 0.15.16 in configure.ac, so checks for older versions aren't required anymore.
This commit is contained in:
parent
5a690ad4ac
commit
002e02715c
2 changed files with 2 additions and 10 deletions
|
|
@ -245,10 +245,8 @@ _cairo_gl_get_image_format_and_type (pixman_format_code_t pixman_format,
|
|||
case PIXMAN_g1:
|
||||
case PIXMAN_yuy2:
|
||||
case PIXMAN_yv12:
|
||||
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,15,16)
|
||||
case PIXMAN_x2r10g10b10:
|
||||
case PIXMAN_a2r10g10b10:
|
||||
#endif
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,18 +97,12 @@ _cairo_format_from_pixman_format (pixman_format_code_t pixman_format)
|
|||
case PIXMAN_a1r1g1b1: case PIXMAN_a1b1g1r1: case PIXMAN_c4:
|
||||
case PIXMAN_g4: case PIXMAN_g1:
|
||||
case PIXMAN_yuy2: case PIXMAN_yv12:
|
||||
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,11,9)
|
||||
case PIXMAN_x2b10g10r10:
|
||||
case PIXMAN_a2b10g10r10:
|
||||
#endif
|
||||
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,14,1)
|
||||
case PIXMAN_b8g8r8x8:
|
||||
case PIXMAN_b8g8r8a8:
|
||||
#endif
|
||||
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,15,16)
|
||||
case PIXMAN_x2b10g10r10:
|
||||
case PIXMAN_a2b10g10r10:
|
||||
case PIXMAN_x2r10g10b10:
|
||||
case PIXMAN_a2r10g10b10:
|
||||
#endif
|
||||
default:
|
||||
return CAIRO_FORMAT_INVALID;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue