mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-07 18:20:27 +01:00
xcb: Add switches for whether XRender supports GOOD/BEST filtering
Currently these are always false, but if XRender use a pixman that supports filtering these could be turned on for that version. Reviewed-by: Bryce Harrington <b.harrington@samsung.com>
This commit is contained in:
parent
58728da6eb
commit
ca9aee4e62
2 changed files with 15 additions and 1 deletions
|
|
@ -77,6 +77,8 @@ typedef struct _cairo_xcb_xid {
|
|||
|
||||
#define XCB_RENDER_HAS_PICTURE_TRANSFORM(surface) XCB_RENDER_AT_LEAST((surface), 0, 6)
|
||||
#define XCB_RENDER_HAS_FILTERS(surface) XCB_RENDER_AT_LEAST((surface), 0, 6)
|
||||
#define XCB_RENDER_HAS_FILTER_GOOD(surface) FALSE
|
||||
#define XCB_RENDER_HAS_FILTER_BEST(surface) FALSE
|
||||
|
||||
#define XCB_RENDER_HAS_EXTENDED_REPEAT(surface) XCB_RENDER_AT_LEAST((surface), 0, 10)
|
||||
#define XCB_RENDER_HAS_GRADIENTS(surface) XCB_RENDER_AT_LEAST((surface), 0, 10)
|
||||
|
|
@ -390,6 +392,12 @@ _cairo_xcb_connection_query_render (cairo_xcb_connection_t *connection)
|
|||
if (XCB_RENDER_HAS_FILTERS (version))
|
||||
connection->flags |= CAIRO_XCB_RENDER_HAS_FILTERS;
|
||||
|
||||
if (XCB_RENDER_HAS_FILTER_GOOD (version))
|
||||
connection->flags |= CAIRO_XCB_RENDER_HAS_FILTER_GOOD;
|
||||
|
||||
if (XCB_RENDER_HAS_FILTER_BEST (version))
|
||||
connection->flags |= CAIRO_XCB_RENDER_HAS_FILTER_BEST;
|
||||
|
||||
if (XCB_RENDER_HAS_PDF_OPERATORS (version))
|
||||
connection->flags |= CAIRO_XCB_RENDER_HAS_PDF_OPERATORS;
|
||||
|
||||
|
|
@ -882,6 +890,8 @@ cairo_xcb_device_debug_cap_xrender_version (cairo_device_t *device,
|
|||
CAIRO_XCB_RENDER_HAS_COMPOSITE_TRAPEZOIDS |
|
||||
CAIRO_XCB_RENDER_HAS_PICTURE_TRANSFORM |
|
||||
CAIRO_XCB_RENDER_HAS_FILTERS |
|
||||
CAIRO_XCB_RENDER_HAS_FILTER_GOOD |
|
||||
CAIRO_XCB_RENDER_HAS_FILTER_BEST |
|
||||
CAIRO_XCB_RENDER_HAS_PDF_OPERATORS |
|
||||
CAIRO_XCB_RENDER_HAS_EXTENDED_REPEAT |
|
||||
CAIRO_XCB_RENDER_HAS_GRADIENTS);
|
||||
|
|
|
|||
|
|
@ -259,6 +259,8 @@ enum {
|
|||
CAIRO_XCB_RENDER_HAS_PDF_OPERATORS = 0x0080,
|
||||
CAIRO_XCB_RENDER_HAS_EXTENDED_REPEAT = 0x0100,
|
||||
CAIRO_XCB_RENDER_HAS_GRADIENTS = 0x0200,
|
||||
CAIRO_XCB_RENDER_HAS_FILTER_GOOD = 0x0400,
|
||||
CAIRO_XCB_RENDER_HAS_FILTER_BEST = 0x0800,
|
||||
|
||||
CAIRO_XCB_HAS_SHM = 0x80000000,
|
||||
|
||||
|
|
@ -271,7 +273,9 @@ enum {
|
|||
CAIRO_XCB_RENDER_HAS_FILTERS |
|
||||
CAIRO_XCB_RENDER_HAS_PDF_OPERATORS |
|
||||
CAIRO_XCB_RENDER_HAS_EXTENDED_REPEAT |
|
||||
CAIRO_XCB_RENDER_HAS_GRADIENTS,
|
||||
CAIRO_XCB_RENDER_HAS_GRADIENTS |
|
||||
CAIRO_XCB_RENDER_HAS_FILTER_GOOD |
|
||||
CAIRO_XCB_RENDER_HAS_FILTER_BEST,
|
||||
CAIRO_XCB_SHM_MASK = CAIRO_XCB_HAS_SHM
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue