[PATCH] Revert "composite: Don't backfill non-bg-None windows"
TImo Aaltonen
tjaalton at ubuntu.com
Tue May 31 04:58:24 PDT 2011
On 29.03.2011 17:29, Alex Deucher wrote:
> On Tue, Mar 29, 2011 at 10:25 AM, Adam Jackson <ajax at redhat.com> wrote:
>> This reverts commit 6dd775f57d2f94f0ddaee324aeec33b9b66ed5bc.
>>
>> Bugzilla: https://bugs.freedesktop.org/34427
>>
>> Signed-off-by: Adam Jackson <ajax at redhat.com>
>
> Acked-by: Alex Deucher <alexdeucher at gmail.com>
Looks like this has gone unnoticed, still not in master and therefore
unable to propose it for 1.10-branch.
Acked-by: Timo Aaltonen <timo.aaltonen at canonical.com>
>
>> ---
>> composite/compalloc.c | 26 --------------------------
>> 1 files changed, 0 insertions(+), 26 deletions(-)
>>
>> diff --git a/composite/compalloc.c b/composite/compalloc.c
>> index e4064f6..7164c0d 100644
>> --- a/composite/compalloc.c
>> +++ b/composite/compalloc.c
>> @@ -508,17 +508,6 @@ compUnredirectOneSubwindow (WindowPtr pParent, WindowPtr pWin)
>> return Success;
>> }
>>
>> -static int
>> -bgNoneVisitWindow(WindowPtr pWin, void *null)
>> -{
>> - if (pWin->backgroundState != BackgroundPixmap)
>> - return WT_WALKCHILDREN;
>> - if (pWin->background.pixmap != None)
>> - return WT_WALKCHILDREN;
>> -
>> - return WT_STOPWALKING;
>> -}
>> -
>> static PixmapPtr
>> compNewPixmap (WindowPtr pWin, int x, int y, int w, int h, Bool map)
>> {
>> @@ -539,21 +528,6 @@ compNewPixmap (WindowPtr pWin, int x, int y, int w, int h, Bool map)
>> if (!map)
>> return pPixmap;
>>
>> - /*
>> - * If there's no bg=None in the tree, we're done.
>> - *
>> - * We could optimize this more by collection the regions of all the
>> - * bg=None subwindows and feeding that in as the clip for the
>> - * CopyArea below, but since window trees are shallow these days it
>> - * might not be worth the effort.
>> - */
>> - if (TraverseTree(pWin, bgNoneVisitWindow, NULL) == WT_NOMATCH)
>> - return pPixmap;
>> -
>> - /*
>> - * Copy bits from the parent into the new pixmap so that it will
>> - * have "reasonable" contents in case for background None areas.
>> - */
>> if (pParent->drawable.depth == pWin->drawable.depth)
>> {
>> GCPtr pGC = GetScratchGC (pWin->drawable.depth, pScreen);
>> --
>> 1.7.4
>>
>> _______________________________________________
>> xorg-devel at lists.x.org: X.Org development
>> Archives: http://lists.x.org/archives/xorg-devel
>> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
--
t
More information about the xorg-devel
mailing list