diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-14 23:29:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-14 23:31:57 +0100 |
commit | f7bbcc492a05f0801c64ee884798cf1a7ebb71c2 (patch) | |
tree | 9f3dd8208ff88f30be516242c7840721efda7f63 /uxa/uxa.h | |
parent | 4be8d7eb89e61ffb2ceb19f1f84260e581187692 (diff) |
Split the prepare blitter functions into check + prepare.
Allow us to check whether we can handle the operation using the blitter
prior to doing any work.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'uxa/uxa.h')
-rw-r--r-- | uxa/uxa.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -74,6 +74,17 @@ typedef struct _UxaDriver { * @{ */ /** + * check_solid() checks whether the driver can do a solid fill to this drawable. + * @param pDrawable Destination drawable + * @param alu raster operation + * @param planemask write mask for the fill + * + * The check_solid() call is recommended if prepare_solid() is + * implemented, but is not required. + */ + Bool(*check_solid) (DrawablePtr pDrawable, int alu, Pixel planemask); + + /** * prepare_solid() sets up the driver for doing a solid fill. * @param pPixmap Destination pixmap * @param alu raster operation @@ -138,6 +149,12 @@ typedef struct _UxaDriver { * @{ */ /** + * check_copy() checks whether the driver can blit between the two Pictures + */ + Bool(*check_copy) (DrawablePtr pSrcDrawable, + DrawablePtr pDstDrawable, + int alu, Pixel planemask); + /** * prepare_copy() sets up the driver for doing a copy within video * memory. - * |