diff options
author | Uli Schlachter <psychon@znc.in> | 2015-06-20 10:59:52 +0200 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2015-06-20 10:59:52 +0200 |
commit | f82ae573fe4748874e6dc7025016f7bf6bc8f7f3 (patch) | |
tree | ac129445ba27c5892fd4534f7643ff052796183e /src/cairo-xcb-surface-render.c | |
parent | e7acf4b6dc6666c2a2c54fb08e9ad6f01a1d415f (diff) | |
download | cairo-f82ae573fe4748874e6dc7025016f7bf6bc8f7f3.tar.gz |
XCB: Don't attach uploaded surfaces as snapshots
When you draw (part of) a surface to an XCB surface, the XCB backend will safe
the uploaded part as a snapshot to the input surface. This allows to re-use this
picture in case the same surface is later used again as a source.
However, other backends do not do this and this has caused and/or highlighted
numerous bugs. Just skipping the snapshot fixes or hides these bugs.
Papers-over: https://bugs.freedesktop.org/show_bug.cgi?id=67505
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/cairo-xcb-surface-render.c')
-rw-r--r-- | src/cairo-xcb-surface-render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-xcb-surface-render.c b/src/cairo-xcb-surface-render.c index 1a086a24f..044339bce 100644 --- a/src/cairo-xcb-surface-render.c +++ b/src/cairo-xcb-surface-render.c @@ -1292,9 +1292,12 @@ _cairo_xcb_surface_picture (cairo_xcb_surface_t *target, return picture; } + /* XXX: This causes too many problems and bugs, let's skip it for now. */ +#if 0 _cairo_surface_attach_snapshot (source, &picture->base, NULL); +#endif _cairo_xcb_surface_setup_surface_picture (picture, pattern, extents); return picture; |