[Wayland-bugs] [Bug 760897] A few clean ups to the shm handling code

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Wed Jan 20 09:57:08 PST 2016


https://bugzilla.gnome.org/show_bug.cgi?id=760897

--- Comment #2 from Ray Strode [halfline] <rstrode at redhat.com> ---
Created attachment 319453
  --> https://bugzilla.gnome.org/attachment.cgi?id=319453&action=edit
wayland: clean up stride calculation when creating shm surface

Right now, we assume the stride for the image surface needs to
be 4 byte aligned.  This is, in fact, true, but it's better to
ask cairo for the alignment requirement directly rather than
assume we know the alignment rules.

This commit changes the code to use cairo_format_stride_for_width
to calculate a suitable rowstride for pixman.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20160120/4107c60c/attachment.html>


More information about the wayland-bugs mailing list