present_priv.h revision 61cb83a8ccd1dd7f671f31fa93c9d8b7be09b4cc
/*
* Copyright © 2013 Keith Packard
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that copyright
* notice and this permission notice appear in supporting documentation, and
* that the name of the copyright holders not be used in advertising or
* publicity pertaining to distribution of the software without specific,
* written prior permission. The copyright holders make no representations
* about the suitability of this software for any purpose. It is provided "as
* is" without express or implied warranty.
*
* THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THIS SOFTWARE.
*/
#ifndef _PRESENT_PRIV_H_
#define _PRESENT_PRIV_H_
#include "scrnintstr.h"
#include "misc.h"
#include "list.h"
#include "windowstr.h"
#include "dixstruct.h"
#include "present.h"
#include <syncsdk.h>
#include <syncsrv.h>
#include <xfixes.h>
#include <randrstr.h>
extern int present_request;
typedef struct present_fence *present_fence_ptr;
struct present_notify {
struct xorg_list window_list;
};
struct present_vblank {
struct xorg_list window_list;
struct xorg_list event_queue;
int num_notifies;
};
typedef struct present_screen_priv {
/* Currently active flipped pixmap and fence */
}
}
static inline present_screen_priv_ptr
{
return (present_screen_priv_ptr)dixLookupPrivate(&(screen)->devPrivates, &present_screen_private_key);
}
/*
* Each window has a list of clients and event masks
*/
typedef struct present_event *present_event_ptr;
typedef struct present_event {
int mask;
typedef struct present_window_priv {
static inline present_window_priv_ptr
{
}
extern RESTYPE present_event_type;
/*
*/
int
int num_notifies);
int
void
void
void
void
present_init(void);
/*
*/
void
void
present_send_config_notify(WindowPtr window, int x, int y, int w, int h, int bw, WindowPtr sibling);
void
present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 serial, uint64_t ust, uint64_t msc);
void
present_send_idle_notify(WindowPtr window, CARD32 serial, PixmapPtr pixmap, present_fence_ptr idle_fence);
int
present_event_init(void);
/*
*/
int
int
void
void
void
present_fake_queue_init(void);
/*
*/
struct present_fence *
void
void
void
void *param);
/*
*/
void
void
int
int
present_create_notifies(ClientPtr client, int num_notifies, xPresentNotify *x_notifies, present_notify_ptr *p_notifies);
void
/*
*/
/*
*/
int
int
/*
*/
#endif /* _PRESENT_PRIV_H_ */