third_party/cairo/src/cairo-xlib-display.c
void
cairo_xlib_device_debug_cap_xrender_version (cairo_device_t *device,
					     int major_version,
					     int minor_version)
{
    cairo_xlib_display_t *display = (cairo_xlib_display_t *) device;

    if (device == NULL || device->status)
	return;

    if (device->backend->type != CAIRO_DEVICE_TYPE_XLIB)
	return;

    if (major_version < display->render_major ||
	(major_version == display->render_major &&
	 minor_version < display->render_minor))
    {
	display->render_major = major_version;
	display->render_minor = minor_version;
    }

    _cairo_xlib_display_select_compositor (display);
}
/**
 * cairo_xlib_device_debug_cap_xrender_version:
 * @device: a #cairo_device_t for the Xlib backend
 * @major_version: major version to restrict to
 * @minor_version: minor version to restrict to
 *
 * Restricts all future Xlib surfaces for this devices to the specified version
 * of the RENDER extension. This function exists solely for debugging purpose.
 * It lets you find out how cairo would behave with an older version of
 * the RENDER extension.
 *
 * Use the special values -1 and -1 for disabling the RENDER extension.
 *
 * Since: 1.12
 **/
@device: a #cairo_device_t for the Xlib backend
@major_version: major version to restrict to
@minor_version: minor version to restrict to

Restricts all future Xlib surfaces for this devices to the specified version
of the RENDER extension. This function exists solely for debugging purpose.
It lets you find out how cairo would behave with an older version of
the RENDER extension.

Use the special values -1 and -1 for disabling the RENDER extension.


@device : a #cairo_device_t for the Xlib backend @major_version : major version to restrict to @minor_version : minor version to restrict to Restricts all future Xlib surfaces for this devices to the specified version of the RENDER extension . This function exists solely for debugging purpose . It lets you find out how cairo would behave with an older version of the RENDER extension . Use the special values - 1 and - 1 for disabling the RENDER extension .
void
cairo_xlib_device_debug_cap_xrender_version (cairo_device_t *device,
					     int major_version,
					     int minor_version)
{
    cairo_xlib_display_t *display = (cairo_xlib_display_t *) device;
    if (device == NULL || device->status)
	return;
    if (device->backend->type != CAIRO_DEVICE_TYPE_XLIB)
	return;
    if (major_version < display->render_major ||
	(major_version == display->render_major &&
	 minor_version < display->render_minor))
    {
	display->render_major = major_version;
	display->render_minor = minor_version;
    }
    _cairo_xlib_display_select_compositor (display);
}
void cairo_xlib_device_debug_cap_xrender_version ( cairo_device_t * device , int major_version , int minor_version ) { cairo_xlib_display_t * display = ( cairo_xlib_display_t * ) device ; if ( device == NULL || device -> status ) return ; if ( device -> backend -> type != CAIRO_DEVICE_TYPE_XLIB ) return ; if ( major_version < display -> render_major || ( major_version == display -> render_major && minor_version < display -> render_minor ) ) { display -> render_major = major_version ; display -> render_minor = minor_version ; } _cairo_xlib_display_select_compositor ( display ) ; }
cairo_xlib_device_debug_cap_xrender_version:
 @device: a #cairo_device_t for the Xlib backend
 @major_version: major version to restrict to
 @minor_version: minor version to restrict to
cairo_xlib_device_debug_cap_xrender_version : @device : a #cairo_device_t for the Xlib backend @major_version : major version to restrict to @minor_version : minor version to restrict to