[PATCH wayland] protocol: Remove incorrect statement that attach must precede damage

Bill Spitzak spitzak at gmail.com
Thu Nov 19 10:25:33 PST 2015


On Thu, Nov 19, 2015 at 3:08 AM, Daniel Stone <daniel at fooishbar.org> wrote:

> Hi,
>
> On 18 November 2015 at 18:30, Bill Spitzak <spitzak at gmail.com> wrote:
> > On Wed, Nov 18, 2015 at 7:44 AM, Derek Foreman <derekf at osg.samsung.com>
> > wrote:
> >> The documentation for wl_surface.commit makes it clear that the
> >> application of damage follows attach during the commit, so it
> >> doesn't matter what order the app sends the requests.
> >>
> >> Many existing apps post damage before attaching a buffer already,
> >> and it's really quite reasonable to do so.
> >
> > Especially because they probably think of the old buffer as being the one
> > that is "damaged", while the new buffer does not have any damage.
>
> No, it does. The old buffer has not changed. The new buffer is the one
> with the changed areas, and changed areas are the literal definition
> of damaged.
>

Actually neither buffer has changed. The damage is saying that only the
pixels in the rectangle are different between the old and new buffer.

I was just saying that I can certainly think of people as saying "the old
buffer is bad in this area, therefore I must send this message now to
indicate it is bad. If I change the buffer first then this message is
saying the new buffer is bad in this area, when in fact the new buffer is
perfect". This is all incorrect but is likely the logic that caused almost
all clients to send the damage request first.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20151119/f8e9f40f/attachment.html>


More information about the wayland-devel mailing list