Commit 902429f0 authored by Roman Gilg's avatar Roman Gilg Committed by Adam Jackson
Browse files

present: Add exported init function of window flip mode



Allow drivers now to initialize window flip mode.
Signed-off-by: Roman Gilg's avatarRoman Gilg <subdiff@gmail.com>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent a337949f
......@@ -174,6 +174,8 @@ present_event_abandon(RRCrtcPtr crtc);
extern _X_EXPORT Bool
present_screen_init(ScreenPtr screen, present_screen_info_ptr info);
extern _X_EXPORT Bool
present_wnmd_screen_init(ScreenPtr screen, present_wnmd_info_ptr info);
typedef void (*present_complete_notify_proc)(WindowPtr window,
CARD8 kind,
......
......@@ -239,7 +239,28 @@ present_screen_priv_init(ScreenPtr screen)
}
/*
* Initialize a screen for use with present
* Initialize a screen for use with present in window flip mode (wnmd)
*/
int
present_wnmd_screen_init(ScreenPtr screen, present_wnmd_info_ptr info)
{
if (!present_screen_register_priv_keys())
return FALSE;
if (!present_screen_priv(screen)) {
present_screen_priv_ptr screen_priv = present_screen_priv_init(screen);
if (!screen_priv)
return FALSE;
screen_priv->wnmd_info = info;
present_wnmd_init_mode_hooks(screen_priv);
}
return TRUE;
}
/*
* Initialize a screen for use with present in default screen flip mode (scmd)
*/
int
present_screen_init(ScreenPtr screen, present_screen_info_ptr info)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment