xquartz: Remove unused DRI{,Post}ValidateTree
Cargo-culted from DRI1, not actually used for anything. Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
a5e7701058
commit
5486c834fa
|
@ -138,12 +138,6 @@ DRIFinishScreenInit(ScreenPtr pScreen)
|
||||||
DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
|
DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
|
||||||
|
|
||||||
/* Wrap DRI support */
|
/* Wrap DRI support */
|
||||||
pDRIPriv->wrap.ValidateTree = pScreen->ValidateTree;
|
|
||||||
pScreen->ValidateTree = DRIValidateTree;
|
|
||||||
|
|
||||||
pDRIPriv->wrap.PostValidateTree = pScreen->PostValidateTree;
|
|
||||||
pScreen->PostValidateTree = DRIPostValidateTree;
|
|
||||||
|
|
||||||
pDRIPriv->wrap.WindowExposures = pScreen->WindowExposures;
|
pDRIPriv->wrap.WindowExposures = pScreen->WindowExposures;
|
||||||
pScreen->WindowExposures = DRIWindowExposures;
|
pScreen->WindowExposures = DRIWindowExposures;
|
||||||
|
|
||||||
|
@ -624,51 +618,6 @@ DRICopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
||||||
pScreen->CopyWindow = DRICopyWindow;
|
pScreen->CopyWindow = DRICopyWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
DRIValidateTree(WindowPtr pParent, WindowPtr pChild, VTKind kind)
|
|
||||||
{
|
|
||||||
ScreenPtr pScreen = pParent->drawable.pScreen;
|
|
||||||
DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pScreen);
|
|
||||||
int returnValue;
|
|
||||||
|
|
||||||
/* unwrap */
|
|
||||||
pScreen->ValidateTree = pDRIPriv->wrap.ValidateTree;
|
|
||||||
|
|
||||||
/* call lower layers */
|
|
||||||
returnValue = (*pScreen->ValidateTree)(pParent, pChild, kind);
|
|
||||||
|
|
||||||
/* rewrap */
|
|
||||||
pScreen->ValidateTree = DRIValidateTree;
|
|
||||||
|
|
||||||
return returnValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
DRIPostValidateTree(WindowPtr pParent, WindowPtr pChild, VTKind kind)
|
|
||||||
{
|
|
||||||
ScreenPtr pScreen;
|
|
||||||
DRIScreenPrivPtr pDRIPriv;
|
|
||||||
|
|
||||||
if (pParent) {
|
|
||||||
pScreen = pParent->drawable.pScreen;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
pScreen = pChild->drawable.pScreen;
|
|
||||||
}
|
|
||||||
pDRIPriv = DRI_SCREEN_PRIV(pScreen);
|
|
||||||
|
|
||||||
if (pDRIPriv->wrap.PostValidateTree) {
|
|
||||||
/* unwrap */
|
|
||||||
pScreen->PostValidateTree = pDRIPriv->wrap.PostValidateTree;
|
|
||||||
|
|
||||||
/* call lower layers */
|
|
||||||
(*pScreen->PostValidateTree)(pParent, pChild, kind);
|
|
||||||
|
|
||||||
/* rewrap */
|
|
||||||
pScreen->PostValidateTree = DRIPostValidateTree;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
DRIClipNotify(WindowPtr pWin, int dx, int dy)
|
DRIClipNotify(WindowPtr pWin, int dx, int dy)
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,8 +53,6 @@ typedef void (*ClipNotifyPtr)(WindowPtr, int, int);
|
||||||
typedef struct {
|
typedef struct {
|
||||||
WindowExposuresProcPtr WindowExposures;
|
WindowExposuresProcPtr WindowExposures;
|
||||||
CopyWindowProcPtr CopyWindow;
|
CopyWindowProcPtr CopyWindow;
|
||||||
ValidateTreeProcPtr ValidateTree;
|
|
||||||
PostValidateTreeProcPtr PostValidateTree;
|
|
||||||
ClipNotifyProcPtr ClipNotify;
|
ClipNotifyProcPtr ClipNotify;
|
||||||
} DRIWrappedFuncsRec, *DRIWrappedFuncsPtr;
|
} DRIWrappedFuncsRec, *DRIWrappedFuncsPtr;
|
||||||
|
|
||||||
|
@ -107,12 +105,6 @@ DRIGetWrappedFuncs(ScreenPtr pScreen);
|
||||||
extern void
|
extern void
|
||||||
DRICopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc);
|
DRICopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc);
|
||||||
|
|
||||||
extern int
|
|
||||||
DRIValidateTree(WindowPtr pParent, WindowPtr pChild, VTKind kind);
|
|
||||||
|
|
||||||
extern void
|
|
||||||
DRIPostValidateTree(WindowPtr pParent, WindowPtr pChild, VTKind kind);
|
|
||||||
|
|
||||||
extern void
|
extern void
|
||||||
DRIClipNotify(WindowPtr pWin, int dx, int dy);
|
DRIClipNotify(WindowPtr pWin, int dx, int dy);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue