[waffle] [PATCH 00/11] Add new public func waffle_window_create2()

Emil Velikov emil.l.velikov at gmail.com
Sun Dec 21 11:41:38 PST 2014


On 16 December 2014 at 08:18, Chad Versace <chad.versace at linux.intel.com> wrote:
> Today, waffle_window() has only two parameters: width and height.
>
> Frank Henigman wants to extend Waffle's GBM backend with the ability to
> post window contents to the display. Multiple methods exist for posting
> content to the screen with the drm API, and that method should be
> configurable per waffle_window. Therefore, we need to be able to pass
> additional attributes to waffle_window_create().
>
> It would also be nice to specify at time of creation that the
> waffle_window should be full screen. Again, we need to pass additional
> attributes to waffle_window_create().
>
> The new function waffle_window_create2() is conceptually equivalent to
> the original waffle_window_create() with the addition of an attrib_list
> parameter.  The only supported attributes are currently
> WAFFLE_WINDOW_WIDTH and WAFFLE_WINDOW_HEIGHT.
>
> I tested the new function on GLX, X11/EGL, Wayland, and GBM.
>
> I did not even test the build on Windows, Android, and Mac. Before merging this
> series, I will ensure it doesn't break the build on those platforms. I don't
> have the ability to actually test on Android or Windows, though.
>
> This patch series is available on my personal branch 'waffle_window_create2'.
>
Hi Chad,

Overall it looks very good imho. I've managed to spot only a few of
trivial bits.
Just a small note for future work - popping an attribute at a time,
will become noticeable as the attribs list grows.

Also if you're not a fan of adding numbers at the end of function
names you might use waffle_window_create_{with,from}_attibs

Thanks
Emil


More information about the waffle mailing list