XFree86: Xv: Add ClipNotify helper
Add a ClipNotify helper that lets the driver know about changes in the clipping of an Xv backing drawable. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
@@ -1123,6 +1123,10 @@ xf86XVClipNotify(WindowPtr pWin, int dx, int dy)
|
||||
|
||||
pPriv->pCompositeClip = NULL;
|
||||
|
||||
if (pPriv->AdaptorRec->ClipNotify)
|
||||
(*pPriv->AdaptorRec->ClipNotify)(pPriv->pScrn, pPriv->DevPriv.ptr,
|
||||
pWin, dx, dy);
|
||||
|
||||
/* Stop everything except images, but stop them too if the
|
||||
window isn't visible. But we only remove the images. */
|
||||
|
||||
|
||||
@@ -112,6 +112,8 @@ typedef int (* ReputImageFuncPtr)( ScrnInfoPtr pScrn, short drw_x, short drw_y,
|
||||
typedef int (*QueryImageAttributesFuncPtr)(ScrnInfoPtr pScrn,
|
||||
int image, unsigned short *width, unsigned short *height,
|
||||
int *pitches, int *offsets);
|
||||
typedef void (*ClipNotifyFuncPtr)(ScrnInfoPtr pScrn, pointer data,
|
||||
WindowPtr window, int dx, int dy);
|
||||
|
||||
typedef enum {
|
||||
XV_OFF,
|
||||
@@ -165,6 +167,7 @@ typedef struct {
|
||||
PutImageFuncPtr PutImage;
|
||||
ReputImageFuncPtr ReputImage;
|
||||
QueryImageAttributesFuncPtr QueryImageAttributes;
|
||||
ClipNotifyFuncPtr ClipNotify;
|
||||
} XF86VideoAdaptorRec, *XF86VideoAdaptorPtr;
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -59,6 +59,7 @@ typedef struct {
|
||||
PutImageFuncPtr PutImage;
|
||||
ReputImageFuncPtr ReputImage;
|
||||
QueryImageAttributesFuncPtr QueryImageAttributes;
|
||||
ClipNotifyFuncPtr ClipNotify;
|
||||
} XvAdaptorRecPrivate, *XvAdaptorRecPrivatePtr;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user