mi: Drop plane argument from miHandleExposures

This existed to be passed to the bs recovery routine; since we back all
planes, we don't care.

Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2014-09-12 11:56:28 -04:00
parent 7eddc80bc4
commit 5d3bd8a3dc
7 changed files with 11 additions and 21 deletions

View File

@ -271,5 +271,5 @@ fbCopyPlane(DrawablePtr pSrcDrawable,
else else
return miHandleExposures(pSrcDrawable, pDstDrawable, pGC, return miHandleExposures(pSrcDrawable, pDstDrawable, pGC,
xIn, yIn, xIn, yIn,
widthSrc, heightSrc, xOut, yOut, bitplane); widthSrc, heightSrc, xOut, yOut);
} }

View File

@ -677,8 +677,7 @@ glamor_copy_plane(DrawablePtr src, DrawablePtr dst, GCPtr gc,
{ {
if ((bitplane & FbFullMask(src->depth)) == 0) if ((bitplane & FbFullMask(src->depth)) == 0)
return miHandleExposures(src, dst, gc, return miHandleExposures(src, dst, gc,
srcx, srcy, width, height, dstx, dsty, srcx, srcy, width, height, dstx, dsty);
bitplane);
return miDoCopy(src, dst, gc, return miDoCopy(src, dst, gc,
srcx, srcy, width, height, srcx, srcy, width, height,
dstx, dsty, glamor_copy, bitplane, NULL); dstx, dsty, glamor_copy, bitplane, NULL);

View File

@ -179,7 +179,7 @@ dmxCopyArea(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
if (DMX_GCOPS_OFFSCREEN(pSrc) || DMX_GCOPS_OFFSCREEN(pDst)) if (DMX_GCOPS_OFFSCREEN(pSrc) || DMX_GCOPS_OFFSCREEN(pDst))
return miHandleExposures(pSrc, pDst, pGC, srcx, srcy, w, h, return miHandleExposures(pSrc, pDst, pGC, srcx, srcy, w, h,
dstx, dsty, 0L); dstx, dsty);
DMX_GCOPS_SET_DRAWABLE(pSrc, srcDraw); DMX_GCOPS_SET_DRAWABLE(pSrc, srcDraw);
DMX_GCOPS_SET_DRAWABLE(pDst, dstDraw); DMX_GCOPS_SET_DRAWABLE(pDst, dstDraw);
@ -188,7 +188,7 @@ dmxCopyArea(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
srcx, srcy, w, h, dstx, dsty); srcx, srcy, w, h, dstx, dsty);
dmxSync(dmxScreen, FALSE); dmxSync(dmxScreen, FALSE);
return miHandleExposures(pSrc, pDst, pGC, srcx, srcy, w, h, dstx, dsty, 0L); return miHandleExposures(pSrc, pDst, pGC, srcx, srcy, w, h, dstx, dsty);
} }
/** Copy plane number \a bitPlane from \a pSrc drawable to \a pDst /** Copy plane number \a bitPlane from \a pSrc drawable to \a pDst
@ -206,7 +206,7 @@ dmxCopyPlane(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
if (DMX_GCOPS_OFFSCREEN(pSrc) || DMX_GCOPS_OFFSCREEN(pDst)) if (DMX_GCOPS_OFFSCREEN(pSrc) || DMX_GCOPS_OFFSCREEN(pDst))
return miHandleExposures(pSrc, pDst, pGC, srcx, srcy, width, height, return miHandleExposures(pSrc, pDst, pGC, srcx, srcy, width, height,
dstx, dsty, bitPlane); dstx, dsty);
DMX_GCOPS_SET_DRAWABLE(pSrc, srcDraw); DMX_GCOPS_SET_DRAWABLE(pSrc, srcDraw);
DMX_GCOPS_SET_DRAWABLE(pDst, dstDraw); DMX_GCOPS_SET_DRAWABLE(pDst, dstDraw);
@ -216,7 +216,7 @@ dmxCopyPlane(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
dmxSync(dmxScreen, FALSE); dmxSync(dmxScreen, FALSE);
return miHandleExposures(pSrc, pDst, pGC, srcx, srcy, width, height, return miHandleExposures(pSrc, pDst, pGC, srcx, srcy, width, height,
dstx, dsty, bitPlane); dstx, dsty);
} }
/** Render list of points, \a pptInit in \a pDrawable on the back-end /** Render list of points, \a pptInit in \a pDrawable on the back-end

View File

@ -229,8 +229,7 @@ extern _X_EXPORT RegionPtr miHandleExposures(DrawablePtr /*pSrcDrawable */ ,
int /*width */ , int /*width */ ,
int /*height */ , int /*height */ ,
int /*dstx */ , int /*dstx */ ,
int /*dsty */ , int /*dsty */
unsigned long /*plane */
); );
extern _X_EXPORT void miSendGraphicsExpose(ClientPtr /*client */ , extern _X_EXPORT void miSendGraphicsExpose(ClientPtr /*client */ ,

View File

@ -242,8 +242,7 @@ miCopyArea(DrawablePtr pSrcDrawable,
} }
} }
prgnExposed = miHandleExposures(pSrcDrawable, pDstDrawable, pGC, xIn, yIn, prgnExposed = miHandleExposures(pSrcDrawable, pDstDrawable, pGC, xIn, yIn,
widthSrc, heightSrc, xOut, yOut, widthSrc, heightSrc, xOut, yOut);
(unsigned long) 0);
if (realSrcClip) if (realSrcClip)
RegionDestroy(prgnSrcClip); RegionDestroy(prgnSrcClip);
@ -579,7 +578,7 @@ miCopyPlane(DrawablePtr pSrcDrawable,
} }
} }
prgnExposed = miHandleExposures(pSrcDrawable, pDstDrawable, pGC, srcx, srcy, prgnExposed = miHandleExposures(pSrcDrawable, pDstDrawable, pGC, srcx, srcy,
width, height, dstx, dsty, bitPlane); width, height, dstx, dsty);
RegionDestroy(prgnSrc); RegionDestroy(prgnSrc);
return prgnExposed; return prgnExposed;
} }

View File

@ -304,8 +304,7 @@ miDoCopy(DrawablePtr pSrcDrawable,
yIn - pSrcDrawable->y, yIn - pSrcDrawable->y,
widthSrc, heightSrc, widthSrc, heightSrc,
xOut - pDstDrawable->x, xOut - pDstDrawable->x,
yOut - pDstDrawable->y, yOut - pDstDrawable->y);
(unsigned long) bitPlane);
RegionUninit(&rgnDst); RegionUninit(&rgnDst);
if (freeSrcClip) if (freeSrcClip)
RegionDestroy(prgnSrcClip); RegionDestroy(prgnSrcClip);

View File

@ -116,18 +116,12 @@ NOTE:
this should generally be called, even if graphicsExposures is false, this should generally be called, even if graphicsExposures is false,
because this is where bits get recovered from backing store. because this is where bits get recovered from backing store.
NOTE:
added argument 'plane' is used to indicate how exposures from backing
store should be accomplished. If plane is 0 (i.e. no bit plane), CopyArea
should be used, else a CopyPlane of the indicated plane will be used. The
exposing is done by the backing store's GraphicsExpose function, of course.
*/ */
RegionPtr RegionPtr
miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
GCPtr pGC, int srcx, int srcy, int width, int height, GCPtr pGC, int srcx, int srcy, int width, int height,
int dstx, int dsty, unsigned long plane) int dstx, int dsty)
{ {
RegionPtr prgnSrcClip; /* drawable-relative source clip */ RegionPtr prgnSrcClip; /* drawable-relative source clip */
RegionRec rgnSrcRec; RegionRec rgnSrcRec;