On Wed, 2010-09-08 at 12:35 -0700, Keith Packard wrote:

> > -void
> > -compWindowUpdate (WindowPtr pWin)
> > +static int
> > +compWindowUpdateVisit(WindowPtr pWin, void *data)
> >  {
> > -    WindowPtr      pChild;
> > -
> > -    for (pChild = pWin->lastChild; pChild; pChild = pChild->prevSib)
> > -   compWindowUpdate (pChild);
> > -    if (pWin->redirectDraw != RedirectDrawNone)
> > +    if (pWin->redirectDraw == RedirectDrawAutomatic)
> 
> This should not be necessary; I'd love to see proof that it changes what
> the server does.

Yeah, I think you're correct.  I'm running with gnome-shell and have a
breakpoint set on compWindowUpdate, and it's never getting hit.

> >      {
> > -   CompWindowPtr   cw = GetCompWindow(pWin);
> > -
> > +   CompWindowPtr cw = GetCompWindow(pWin);
> >     if (cw->damaged)
> > -   {
> > -       compWindowUpdateAutomatic (pWin);
> > -       cw->damaged = FALSE;
> > -   }
> > +       compWindowUpdateAutomatic(pWin, data);
> > +   cw->damaged = FALSE;
> 
> We've already tested for this; no reason to dirty the cache line; you're
> not saving a branch.

That's the sort of thing I would expect the compiler to know for me, but
fair enough.

- ajax

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to