Quartz Compositor

{{Short description|Window rendering system used in macOS}}

{{Distinguish|Quartz Composer}}

{{Infobox software

| name = Quartz Compositor

| title = Quartz Compositor

| logo =

| logo caption =

| logo_size =

| logo_alt =

| screenshot =

| caption =

| screenshot_size =

| screenshot_alt =

| collapsible =

| author =

| developer =

| released =

| discontinued =

| latest release version =

| latest release date =

| latest preview version =

| latest preview date =

| frequently updated =

| status =

| programming language =

| operating system = macOS

| platform =

| size =

| language =

| language count =

| language footnote =

| genre = {{ubl|Display server|Compositing window manager}}

| license = Proprietary software under EULA

| website = {{URL|https://web.archive.org/web/20150322043623/https://developer.apple.com/technologies/mac/graphics-and-animation.html}}

}}

{{OS X graphics model

|logo=

}}

Quartz Compositor is the display server (and at the same time the compositing window manager) in macOS. It is responsible for presenting and maintaining rasterized, rendered graphics from the rest of the Core Graphics framework and other renderers in the Quartz technologies family.{{cite web |last=Russell |first=Matthew |date=October 11, 2005 |title=What Is Quartz (or Why Can't Windows Do That) |work=O'Reilly Mac DevCenter |publisher=O'Reilly Media |url=http://oreilly.com/pub/a/mac/2005/10/11/what-is-quartz.html |access-date=17 November 2011 |url-status=dead |archive-url=https://web.archive.org/web/20130527151142/http://oreilly.com/pub/a/mac/2005/10/11/what-is-quartz.html |archive-date=2013-05-27}}

Overview

The bitmap output from Quartz 2D, OpenGL, Core Image, QuickTime, or other process is written to a specific memory location, or backing store. The Compositor then reads the data from the backing stores and assembles each into one image for the display, writing that image to the frame buffer memory of the graphics card. Quartz Compositor only accepts raster data, and is the only process that can directly access the graphics frame buffer.{{cite web |last=Siracusa |first=John |date=2005-04-28 |title=Mac OS X 10.4 Tiger |work=ArsTechnica |url=https://arstechnica.com/apple/reviews/2005/04/macosx-10-4.ars/13 |access-date=2010-01-15}}

In managing individual windows, Quartz Compositor accepts a bitmap image of the window's contents from its renderer, along with its position. The choice of the renderer is up to the individual application, although most use Quartz 2D. Quartz Compositor then acts as a "visual mixing board," by adding the given window to the whole scene for the display.

In its role as window manager, Quartz Compositor also has an event queue which receives events, such as key strokes and mouse clicks. The Quartz Compositor takes the events from the queue, determines which process owns the window where the event occurred, and passes the event on to the process.{{cite web |title=Apple - Developer - Mac OS X Technology Overview: Graphics, Imaging, and Multimedia |url=https://developer.apple.com/documentation/MacOSX/Conceptual/OSX_Technology_Overview/SystemTechnology/chapter_4_section_3.html |access-date=2007-04-18}}

Quartz Extreme

Mac OS X v10.2 introduced Quartz Extreme: graphics processor (GPU) acceleration for the Quartz Compositor. With Quartz Extreme, far fewer central processing unit (CPU) cycles are needed for scene composition. Instead, the Quartz Compositor encapsulates each rendered backing store in an OpenGL texture map or surface. It then directs the GPU to compose the surfaces and maps to provide the final image, which is delivered to the frame buffer.

Quartz Extreme only uses OpenGL commands, and requires a graphics card connected to an AGP 2X or faster bus (including AGP 4X, 8X, and PCI Express), supporting textures and maps of arbitrary size, since many of the renderers have no size limitation (Quartz 2D for example). In Mac OS X Tiger, it is automatically enabled on Mac systems with one of the following types of graphics cards:{{cite web |title=Apple - Mac OS X 10.4: Requirements for Quartz Extreme and Core Image graphics |url=http://docs.info.apple.com/article.html?artnum=301347 |access-date=2007-02-12 |url-status=dead |archive-url=https://web.archive.org/web/20120319172837/http://support.apple.com/kb/HT1582?viewlocale=en_US |archive-date=2012-03-19}}

As of OS X El Capitan, Quartz Extreme is enabled on all supported Macs.

QuartzGL

QuartzGL (called Quartz 2D Extreme when it was introduced in Mac OS X Tiger) is GPU acceleration for the Quartz 2D API. With QuartzGL enabled, all Quartz drawing commands are translated to OpenGL commands and executed on the GPU. This differs from Quartz Extreme, which still executes Quartz drawing commands on the CPU but performs final composition using the GPU.

In OS X Mountain Lion, QuartzGL was still not enabled by default. However, it was possible to enable it using the Quartz Debug application included in the Apple Developer Tools. QuartzGL would be disabled once again upon quitting the Quartz Debug utility. A workaround was to force quit the Quartz Debug application, which would leave QuartzGL enabled system-wide.

All graphics cards capable of supporting Core Image also support QuartzGL.

See also

References

{{reflist}}