summaryrefslogtreecommitdiff
path: root/hw/xfree86/xaa/xaaOverlayDF.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2007-08-25 15:08:20 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2007-08-25 15:08:20 -0400
commitae7f71a8b3d6756161e55d998d6eec37d2695c98 (patch)
tree062e2a706da974db9e40c0fabf25c32355a26916 /hw/xfree86/xaa/xaaOverlayDF.c
parentbf0883ae5081bd75569115a3eb27c6d3d336c9f2 (diff)
Implement core protocol backing store exclusively in terms of Composite.
Composite's automatic redirection is a more general mechanism than the ad-hoc BS machinery, so it's much prettier to implement the one in terms of the other. Composite now wraps ChangeWindowAttributes and activates automatic redirection for windows with backing store requested. The old backing store infrastructure is completely gutted: ABI-visible structures retain the function pointers, but they never get called, and all the open-coded conditionals throughout the DIX layer to implement BS are gone. Note that this is still not a strictly complete implementation of backing store, since Composite will throw the bits away on unmap and therefore WhenMapped and Always hints are equivalent.
Diffstat (limited to 'hw/xfree86/xaa/xaaOverlayDF.c')
-rw-r--r--hw/xfree86/xaa/xaaOverlayDF.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/hw/xfree86/xaa/xaaOverlayDF.c b/hw/xfree86/xaa/xaaOverlayDF.c
index cfdac380e..5897e323b 100644
--- a/hw/xfree86/xaa/xaaOverlayDF.c
+++ b/hw/xfree86/xaa/xaaOverlayDF.c
@@ -30,9 +30,6 @@
static void XAAOverCopyWindow(WindowPtr, DDXPointRec, RegionPtr);
static void XAAOverPaintWindow(WindowPtr, RegionPtr, int);
static void XAAOverWindowExposures(WindowPtr, RegionPtr, RegionPtr);
-static void XAAOverSaveAreas(PixmapPtr, RegionPtr, int, int, WindowPtr);
-static void XAAOverRestoreAreas(PixmapPtr, RegionPtr, int, int, WindowPtr);
-
static int XAAOverStippledFillChooser(GCPtr);
static int XAAOverOpaqueStippledFillChooser(GCPtr);
@@ -200,8 +197,6 @@ XAAInitDualFramebufferOverlay(
pScreen->PaintWindowBackground = XAAOverPaintWindow;
pScreen->PaintWindowBorder = XAAOverPaintWindow;
pScreen->WindowExposures = XAAOverWindowExposures;
- pScreen->BackingStoreFuncs.SaveAreas = XAAOverSaveAreas;
- pScreen->BackingStoreFuncs.RestoreAreas = XAAOverRestoreAreas;
pOverPriv->StippledFillChooser = infoRec->StippledFillChooser;
pOverPriv->OpaqueStippledFillChooser = infoRec->OpaqueStippledFillChooser;
@@ -495,46 +490,6 @@ XAAOverWindowExposures(
XAA_SCREEN_EPILOGUE(pScreen, WindowExposures, XAAOverWindowExposures);
}
-
-static void
-XAAOverSaveAreas (
- PixmapPtr pPixmap,
- RegionPtr prgnSave,
- int xorg,
- int yorg,
- WindowPtr pWin
-){
- XAAOverlayPtr pOverPriv = GET_OVERLAY_PRIV(pWin->drawable.pScreen);
- XAAInfoRecPtr infoRec =
- GET_XAAINFORECPTR_FROM_DRAWABLE((DrawablePtr)pWin);
-
- if(pOverPriv->pScrn->vtSema) {
- SWITCH_DEPTH(pWin->drawable.depth);
- }
-
- (*infoRec->SaveAreas)(pPixmap, prgnSave, xorg, yorg, pWin);
-}
-
-
-static void
-XAAOverRestoreAreas (
- PixmapPtr pPixmap,
- RegionPtr prgnRestore,
- int xorg,
- int yorg,
- WindowPtr pWin
-){
- XAAOverlayPtr pOverPriv = GET_OVERLAY_PRIV(pWin->drawable.pScreen);
- XAAInfoRecPtr infoRec =
- GET_XAAINFORECPTR_FROM_DRAWABLE((DrawablePtr)pWin);
-
- if(pOverPriv->pScrn->vtSema) {
- SWITCH_DEPTH(pWin->drawable.depth);
- }
-
- (*infoRec->RestoreAreas)(pPixmap, prgnRestore, xorg, yorg, pWin);
-}
-
/********************* Choosers *************************/
static int