[waffle] [PATCH 07/10] waffle: add full screen window request

Chad Versace chad.versace at intel.com
Wed Apr 22 12:26:34 PDT 2015


On Fri 10 Apr 2015, Emil Velikov wrote:
> On 09/04/15 22:48, Chad Versace wrote:
> > On Mon 30 Mar 2015, Frank Henigman wrote:
> >> You can now put WAFFLE_WINDOW_FULLSCREEN in the attribute list passed
> >> to waffle_window_create2() and get a full screen window.
> >> Only glx and x11_egl implemented so far.
> > 
> > I like the idea of WAFFLE_WINDOW_FULLSCREEN. Comments below.
> > 
> >> Signed-off-by: Frank Henigman <fjhenigman at google.com>
> >> ---
> >> include/waffle/waffle.h        |  1 +
> >> src/waffle/api/waffle_window.c | 69
> >> ++++++++++++++++++++++--------------------
> >> src/waffle/glx/glx_window.c    | 12 ++++++--
> >> src/waffle/xegl/xegl_window.c  | 13 ++++++--
> >> 4 files changed, 59 insertions(+), 36 deletions(-)
> >>
> >> diff --git a/include/waffle/waffle.h b/include/waffle/waffle.h
> >> index 297a487..df0218e 100644
> >> --- a/include/waffle/waffle.h
> >> +++ b/include/waffle/waffle.h
> >> @@ -172,6 +172,7 @@ enum waffle_enum {
> >>
> >>     WAFFLE_WINDOW_WIDTH                                         = 0x0310,
> >>     WAFFLE_WINDOW_HEIGHT                                        = 0x0311,
> >> +    WAFFLE_WINDOW_FULLSCREEN                                    =
> >> 0x0312,
> > 
> > wcore_enum_to_string must be taught about the new enum.
> > 
> Hi Chad,
> 
> Should one wrap the new enum in #if WAFFLE_API_VERSION >= 0x1070 ? Or it
> only makes sense for new entry points into the waffle library ?
> Considering that WAFFLE_WINDOW_{WIDTH,HEIGHT} went in without the API
> guard, I'm leaning towards the latter.

I'm unsure. Other libraries that use feature test macros, what do they
do? For the record, when adding WAFFLE_CONTEXT_FORWARD_COMPATIBLE and
WAFFLE_CONTEXT_DEBUG, I guarded those with 0x0130. But I'm open to
guarding only entry points if that makes more sense.

I think we should research what other libraries do before committing to
a decision.

> Speaking of which what is the status of waffle_display_print_info() ?
> Mostly curious than anything else.

I CC'd you today on the relevant thread.


More information about the waffle mailing list