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:
		
							parent
							
								
									47fb207c8a
								
							
						
					
					
						commit
						85f46e0bcd
					
				| 
						 | 
					@ -426,6 +426,11 @@ kaaTryDriverComposite(CARD8		op,
 | 
				
			||||||
				   width, height))
 | 
									   width, height))
 | 
				
			||||||
	return 1;
 | 
						return 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (pKaaScr->info->CheckComposite &&
 | 
				
			||||||
 | 
						!(*pKaaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
						return -1;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (pSrc->pDrawable->type == DRAWABLE_PIXMAP)
 | 
					    if (pSrc->pDrawable->type == DRAWABLE_PIXMAP)
 | 
				
			||||||
	kaaPixmapUseScreen ((PixmapPtr) pSrc->pDrawable);
 | 
						kaaPixmapUseScreen ((PixmapPtr) pSrc->pDrawable);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -348,6 +348,10 @@ typedef struct _KaaScreenInfo {
 | 
				
			||||||
			  int	height);
 | 
								  int	height);
 | 
				
			||||||
    void	(*DoneBlend) (void);
 | 
					    void	(*DoneBlend) (void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Bool        (*CheckComposite) (int		op,
 | 
				
			||||||
 | 
									   PicturePtr	pSrcPicture,
 | 
				
			||||||
 | 
									   PicturePtr	pMaskPicture,
 | 
				
			||||||
 | 
									   PicturePtr	pDstPicture);
 | 
				
			||||||
    Bool        (*PrepareComposite) (int		op,
 | 
					    Bool        (*PrepareComposite) (int		op,
 | 
				
			||||||
				     PicturePtr		pSrcPicture,
 | 
									     PicturePtr		pSrcPicture,
 | 
				
			||||||
				     PicturePtr		pMaskPicture,
 | 
									     PicturePtr		pMaskPicture,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue