Add fullscreen protocol
authorJuan Zhao <juan.j.zhao@linux.intel.com>
Tue, 7 Feb 2012 05:39:36 +0000 (13:39 +0800)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 16 Feb 2012 20:49:29 +0000 (15:49 -0500)
commitb3981136a1a501a43b709acef9f145cf977e08b0
tree56cabb50473e6e58b8c1fb457001a9abcaeafea1
parent2eddfce14bd282e60d2d928fe567f89c448ebd6e
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.
protocol/wayland.xml