From 77f614eb331b0240c699f7aef13a8046c9c2c70a Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 9 Oct 2019 12:05:56 -0400 Subject: [PATCH] composite: Stop wrapping GetImage/GetSpans MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SourceValidate handles this for us consistently now. Reviewed-by: Michel Dänzer --- composite/compinit.c | 41 ----------------------------------------- composite/compint.h | 2 -- 2 files changed, 43 deletions(-) diff --git a/composite/compinit.c b/composite/compinit.c index 69abb0a40..a62c8d3c4 100644 --- a/composite/compinit.c +++ b/composite/compinit.c @@ -76,9 +76,6 @@ compCloseScreen(ScreenPtr pScreen) pScreen->CreateWindow = cs->CreateWindow; pScreen->CopyWindow = cs->CopyWindow; pScreen->PositionWindow = cs->PositionWindow; - - pScreen->GetImage = cs->GetImage; - pScreen->GetSpans = cs->GetSpans; pScreen->SourceValidate = cs->SourceValidate; free(cs); @@ -137,38 +134,6 @@ compChangeWindowAttributes(WindowPtr pWin, unsigned long mask) return ret; } -static void -compGetImage(DrawablePtr pDrawable, - int sx, int sy, - int w, int h, - unsigned int format, unsigned long planemask, char *pdstLine) -{ - ScreenPtr pScreen = pDrawable->pScreen; - CompScreenPtr cs = GetCompScreen(pScreen); - - pScreen->GetImage = cs->GetImage; - if (pDrawable->type == DRAWABLE_WINDOW) - compPaintChildrenToWindow((WindowPtr) pDrawable); - (*pScreen->GetImage) (pDrawable, sx, sy, w, h, format, planemask, pdstLine); - cs->GetImage = pScreen->GetImage; - pScreen->GetImage = compGetImage; -} - -static void -compGetSpans(DrawablePtr pDrawable, int wMax, DDXPointPtr ppt, int *pwidth, - int nspans, char *pdstStart) -{ - ScreenPtr pScreen = pDrawable->pScreen; - CompScreenPtr cs = GetCompScreen(pScreen); - - pScreen->GetSpans = cs->GetSpans; - if (pDrawable->type == DRAWABLE_WINDOW) - compPaintChildrenToWindow((WindowPtr) pDrawable); - (*pScreen->GetSpans) (pDrawable, wMax, ppt, pwidth, nspans, pdstStart); - cs->GetSpans = pScreen->GetSpans; - pScreen->GetSpans = compGetSpans; -} - static void compSourceValidate(DrawablePtr pDrawable, int x, int y, @@ -444,12 +409,6 @@ compScreenInit(ScreenPtr pScreen) cs->CloseScreen = pScreen->CloseScreen; pScreen->CloseScreen = compCloseScreen; - cs->GetImage = pScreen->GetImage; - pScreen->GetImage = compGetImage; - - cs->GetSpans = pScreen->GetSpans; - pScreen->GetSpans = compGetSpans; - cs->SourceValidate = pScreen->SourceValidate; pScreen->SourceValidate = compSourceValidate; diff --git a/composite/compint.h b/composite/compint.h index d501bad65..423b641ff 100644 --- a/composite/compint.h +++ b/composite/compint.h @@ -168,8 +168,6 @@ typedef struct _CompScreen { Window overlayWid; CompOverlayClientPtr pOverlayClients; - GetImageProcPtr GetImage; - GetSpansProcPtr GetSpans; SourceValidateProcPtr SourceValidate; } CompScreenRec, *CompScreenPtr;