summaryrefslogtreecommitdiff
path: root/composite/compositeext.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2014-03-27 22:15:28 -0700
committerKristian Høgsberg <krh@bitplanet.net>2014-04-01 10:31:09 -0700
commit4ba7b594464887ae68623e150348d90812eec36c (patch)
tree0ae85b522c0b308a592dc1bc3cb6716ba184d3c9 /composite/compositeext.h
parent73698d41e41ce76bef2d9a90b46ac0c24ae148dd (diff)
composite: Add exception mechanism for implicit redirection policy
Normally composite will decide to add implicit redirection when a window with an alternate visual is a parent of a window with a regular visual or vice versa. This uses extra pixmap memory and incurs an extra copy. This exception mechanism provides a way for a DDX to override this if the DDX knows that its acceleration architecture will render correctly. The relevant case is that of an RGB window reparented into a ARGB parent frame window. If the DDX knows that the acceleration architecture in use will pad the alpha channel to opaque when rendering to the RGB window, the implicit redirection can be avoided. This patch adds a new composite function: CompositeRegisterImplicitRedirectionException() which lets a DDX register a pair of parent and child window visuals, that will not be implicitly redirected even if the normal policy would have made that choice. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'composite/compositeext.h')
-rw-r--r--composite/compositeext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/composite/compositeext.h b/composite/compositeext.h
index 0b148f029..b96cb1d68 100644
--- a/composite/compositeext.h
+++ b/composite/compositeext.h
@@ -35,6 +35,10 @@ extern _X_EXPORT Bool CompositeRegisterAlternateVisuals(ScreenPtr pScreen,
VisualID * vids,
int nVisuals);
+extern _X_EXPORT Bool CompositeRegisterImplicitRedirectionException(ScreenPtr pScreen,
+ VisualID parentVisual,
+ VisualID winVisual);
+
extern _X_EXPORT RESTYPE CompositeClientWindowType;
#endif /* _COMPOSITEEXT_H_ */