summaryrefslogtreecommitdiff
path: root/randr/randrstr.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-26 10:00:21 +0100
committerDave Airlie <airlied@redhat.com>2012-07-05 20:29:56 +0100
commit6150bf1b3e7ad1a69ca297fec93ef9d3b93a8312 (patch)
tree124b972b523e01f7952c361ff440ba8e7e6eb47e /randr/randrstr.h
parent40e9655689ab1b6cefe0afb62fb2d720bb45497e (diff)
dix/randr: add a hook into screen to replace scanout pixmap
For DRI2 in some offload cases we need to set a new pixmap on the crtc, this hook allows dri2 to call into randr to do the necessary work to set a pixmap as the scanout pixmap for the crtc the drawable is currently on. This is really only to be used for unredirected full screen apps in composited environments. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'randr/randrstr.h')
-rw-r--r--randr/randrstr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/randr/randrstr.h b/randr/randrstr.h
index 64c9afbb3..968cd3080 100644
--- a/randr/randrstr.h
+++ b/randr/randrstr.h
@@ -678,6 +678,9 @@ extern _X_EXPORT void
extern _X_EXPORT void
RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc);
+extern _X_EXPORT Bool
+ RRReplaceScanoutPixmap(DrawablePtr pDrawable, PixmapPtr pPixmap, Bool enable);
+
/*
* Crtc dispatch
*/