请输入您要查询的百科知识:

 

词条 Display server
释义

  1. Available display server communications protocols

      X11    Wayland    Mir    SurfaceFlinger    Quartz Compositor    Desktop Window Manager  

  2. See also

  3. References

{{more citations needed|date=August 2013}}

A display server or window server is a program whose primary task is to coordinate the input and output of its clients to and from the rest of the operating system, the hardware, and each other. The display server communicates with its clients over the display server protocol, a communications protocol, which can be network-transparent or simply network-capable.

The display server is a key component in any graphical user interface, specifically the windowing system.

Available display server communications protocols

X11

{{Main article|X Window System core protocol|X Window System}}

One example of a display server is the X.Org Server, which runs on top of the kernel (usually a Unix-based kernel, such as Linux or BSD). It receives user input data (e.g. from evdev on Linux) and passes it to one of its clients. The display server also receives data from its clients; it processes the data, it does the compositing and on Linux it passes the data to one of three kernel components – DRM, gem or KMS driver. The component writes the data into the framebuffer and content of the framebuffer is transmitted to the connected screen and displayed. X relies on GLX.

One of the implementations of display server concept is X Window System, in particular its actually used version – X.Org Server and Xlib and XCB client libraries. The X.Org Server is a display server, but in its current implementation it relies on a second program, the compositing window manager, to do the compositing. Examples are Mutter or KWin.

Notable examples of display servers implementing the X11 display server protocol are X.Org Server, XFree86, XQuartz and Cygwin/X, while client libraries implementing the X11 display server protocol are Xlib and XCB.

One tool called xev is a Unix command which creates a window and then asks the display server to send information of events every time something happens to the window (like if it's resized, if any keys are pushed, if it's clicked it etc.) to the console.

Wayland

{{Main article|Wayland (display server protocol)}}

Display servers that implement the Wayland display server protocol, are called Wayland compositors. Like any display server, a Wayland compositor is responsible for handling input and output for its clients and – in contrast to X11 – additionally for the compositing. Examples are Weston, Mutter, KWin or Enlightenment.

Wayland compositors communicate with Wayland clients over the Wayland display server protocol. This protocol defines that clients can directly write data into the framebuffer using the EGL rendering API. The display server still gets to decide which window is on top and thus visible to the user and also still is responsible for passing data regarding to input devices from evdev to its clients.

Wayland is used to a certain degree in some Linux desktop distributions, such as Fedora.[1] It is also well suited for mobile computing and has been adopted, for example, by the smartphone- and tablet-focused projects Tizen and Sailfish OS.

An implementation of Wayland is available under the MIT License, the libwayland-client and libwayland-server libraries.

There is an ongoing effort to add Wayland support to Chrome OS.[2]

Mir

{{Main article|Mir (display server)}}

The Mir display server comes with its own Mir display server protocol which is different from those used by X11 and Wayland. Mir additionally supports the X11 protocol.[3] It was developed by Canonical and was intended to be the display server of choice for Ubuntu. As of 2017, it has been replaced with the Wayland display server for desktop editions of Ubuntu.

There are implementations of the Mir display server, the libmir-server and the libmir-client libraries available under the GPLv3.

SurfaceFlinger

For Android (another Linux kernel-based operating system primarily for mobile devices) Google developed a display server called SurfaceFlinger:[4]

Everything in Android is rendered to a "surface"; "surfaces" are produced by applications and placed into a queue that is managed by SurfaceFlinger.[5][6]

Yet another Android-specific solution is "Gralloc". Gralloc handles device memory i.e. it does allocation, arbitration, it handles synchronization via Android/Linux fence file descriptors (FDs). Gralloc competes with other solutions like e.g. Mesa's Generic Buffer Management (GBM) or Nvidia's EGLStreams. The gralloc hardware abstraction layer (HAL) is used to allocate the buffers that underlie "surfaces".

For compositing in Android, Surfaces are sent to SurfaceFlinger, which uses OpenGL ES to do the compositing.

Hardware Composer HAL (HWC) was introduced in Android 3.0 and has evolved steadily over the years. Its primary purpose is to determine the most efficient way to composite buffers with the available hardware. As a HAL, its implementation is device-specific and usually done by the display hardware OEM.

Quartz Compositor

For Apple's macOS family of operating systems, Quartz Compositor fulfils the tasks of a display server and of a window manager in the windowing system.

Desktop Window Manager

For Microsoft Windows, from Windows Vista onward, Desktop Window Manager enables the use of hardware acceleration to render the graphical user interface. It was originally created to enable portions of the new "Windows Aero" user experience, which allowed for effects such as transparency, 3D window switching and more. It is also included with Windows Server 2008, but requires the "Desktop Experience" feature and compatible graphics drivers to be installed.

See also

{{Portal|Information technology}}
  • Windowing system
  • List of display servers

References

1. ^{{cite web | url = https://blogs.gnome.org/mclasen/2016/03/04/why-wayland-anyway/ | title = Why Wayland Anyway? | work = Goings On | publisher = Matthias Clasen | accessdate = 2016-06-17}}
2. ^{{cite web | url = https://chromium.googlesource.com/chromium/src/+/master/docs/ozone_overview.md | title = Ozone Overview | accessdate = 2017-08-20}}
3. ^{{Cite web|url=https://samohtv.wordpress.com/2013/03/04/mir-an-outpost-envisioned-as-a-new-home/|title=[Updated] Mir – An outpost envisioned as a new home|last=ThomasVo5|date=2013-03-04|website=tvoss@work|access-date=2017-08-05}}
4. ^{{cite web |url=http://androidteam.googlecode.com/files/Anatomy-Physiology-of-an-Android.pdf |archive-url=https://web.archive.org/web/20160408053917/http://androidteam.googlecode.com/files/Anatomy-Physiology-of-an-Android.pdf |archive-date=2016-04-08 |title=Android system architecture |format=PDF}}
5. ^{{cite web |url=https://developer.android.com/reference/android/view/Surface.html |title=Android Developer: Surface}}
6. ^{{cite web |url=https://source.android.com/devices/graphics/arch-sf-hwc.html |title=Android Developer: SurfaceFlinger and Hardware Composer}}

3 : Communications protocols|Computer graphics|Display servers

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 12:11:45