Add new CheckComposite hook. This allows a driver to avoid the migration of

pixmaps for a Composite operation if the operation can't be supported.
    This hook is optional.
This commit is contained in:
Eric Anholt 2004-05-17 07:14:23 +00:00
parent 47fb207c8a
commit 85f46e0bcd
2 changed files with 9 additions and 0 deletions

View File

@ -426,6 +426,11 @@ kaaTryDriverComposite(CARD8 op,
width, height))
return 1;
if (pKaaScr->info->CheckComposite &&
!(*pKaaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
{
return -1;
}
if (pSrc->pDrawable->type == DRAWABLE_PIXMAP)
kaaPixmapUseScreen ((PixmapPtr) pSrc->pDrawable);

View File

@ -348,6 +348,10 @@ typedef struct _KaaScreenInfo {
int height);
void (*DoneBlend) (void);
Bool (*CheckComposite) (int op,
PicturePtr pSrcPicture,
PicturePtr pMaskPicture,
PicturePtr pDstPicture);
Bool (*PrepareComposite) (int op,
PicturePtr pSrcPicture,
PicturePtr pMaskPicture,