diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-06-22 10:50:35 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-06-22 22:38:15 +0200 |
commit | b2e116971031d1357f614e9ce1d843768489a304 (patch) | |
tree | 94ca47feaecd02f32101864fe26a7a5b8301b7fd /saa/saa_priv.h | |
parent | 3650be74d5da602653b2b1d3cf3a6bb5a9cb3539 (diff) |
saa: Reuse code for computing composite bounds.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'saa/saa_priv.h')
-rw-r--r-- | saa/saa_priv.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/saa/saa_priv.h b/saa/saa_priv.h index c961345..5d449fd 100644 --- a/saa/saa_priv.h +++ b/saa/saa_priv.h @@ -99,7 +99,7 @@ struct saa_screen_priv { RegionRec srcReg; RegionRec maskReg; - PixmapPtr srcPix; + DrawablePtr srcDraw; }; extern GCOps saa_gc_ops; @@ -228,6 +228,7 @@ saa_render_setup(ScreenPtr pScreen); extern void saa_render_takedown(ScreenPtr pScreen); + extern void saa_check_composite(CARD8 op, PicturePtr pSrc, @@ -237,7 +238,10 @@ saa_check_composite(CARD8 op, INT16 ySrc, INT16 xMask, INT16 yMask, - INT16 xDst, INT16 yDst, CARD16 width, CARD16 height); + INT16 xDst, INT16 yDst, CARD16 width, CARD16 height, + RegionPtr src_region, + RegionPtr mask_region, + RegionPtr dst_region); #endif extern Bool @@ -260,4 +264,17 @@ saa_pix_damage_pending(struct saa_pixmap *spix) extern RegionPtr saa_boxes_to_region(ScreenPtr pScreen, int nbox, BoxPtr pbox, int ordering); + +Bool +saa_compute_composite_regions(ScreenPtr pScreen, + PicturePtr pSrc, + PicturePtr pMask, + PicturePtr pDst, + INT16 xSrc, INT16 ySrc, INT16 xMask, + INT16 yMask, INT16 xDst, + INT16 yDst, INT16 width, INT16 height, + RegionPtr dst_reg, + RegionPtr *src_reg, + RegionPtr *mask_reg); + #endif |