From: Juan Zhao Date: Tue, 7 Feb 2012 05:39:36 +0000 (+0800) Subject: Add fullscreen protocol X-Git-Tag: 0.94.90~209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3981136a1a501a43b709acef9f145cf977e08b0;p=profile%2Fivi%2Fwayland.git Add fullscreen protocol Map the surface as a fullscreen surface. On the output the surface is assigned to. The client can use different fulllscreen method to fix the size mismatch issue: default, scale, driver and fill. Hints to indicate compositor how to deal with this fullscreen surface. "default" means the client has no preference on fullscreen behavior, policies are determined by compositor. "scale" means the client prefers scaling by the compositor. Scaling would always preserve surface's aspect ratio. And the surface is centered. "driver" means the client wants to switch video mode to the smallest mode that can fit the client buffer. If the sizes do not match, black borders are added. And the framerate parameter is used for "driver" method, to indicate the preferred framerate. framerate=0 means that the app does not care about framerate "fill" means the client wants to add blackborders to the surface. This would be preferring 1:1 pixel mapping in the monitor native video mode. The surface is centered. --- diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 6d86abc..a33c1d3 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -418,16 +418,40 @@ - Map the surface as a fullscreen surface. There are a number - of options here: on which output? if the surface size doesn't - match the output size, do we scale, change resolution, or add - black borders? is that something the client controls? what - about transient surfaces, do they float on top of the - fullscreen? what if there's already a fullscreen surface on - the output, maybe you can only go fullscreen if you're active? - + Map the surface as a fullscreen surface. On the output the + surface is assigned to. The client can use different fulllscreen + method to fix the size mismatch issue: default, scale, driver + and fill. And the framerate parameter is used for "driver" method, + to indicate the preferred framerate. framerate=0 means that the + app does not care about framerate + + + + + + + Hints to indicate compositor how to deal with this fullscreen surface. + "default" means the client has no preference on fullscreen + behavior, policies are determined by compositor. + "scale" means the client prefers scaling by the compositor. + Scaling would always preserve surface's aspect ratio. + And the surface is centered. + "driver" means the client wants to switch video mode to the + smallest mode that can fit the client buffer. If the + sizes do not match, black borders are added. + "fill" means the client wants to add blackborders to the + surface. This would be preferring 1:1 pixel mapping + in the monitor native video mode. The surface is + centered. + + + + + + + Popup surfaces. Will switch an implicit grab into