Quartz_Compositor Quartz_Compositor

Quartz Compositor - Definition and Overview

Quartz Compositor is the windowing system that is responsible for the user interface in Mac OS X. On a Mac OS X system, the Quartz Compositor can be seen in a process list as Window Manager or, in more recent versions, WindowServer.

Quartz Compositor performs two main functions:

  • maintaining and compositing windows
  • event routing

Each window in Mac OS X is stored as a bitmap associated with positioning (including z-index positioning), transparency and anti-aliasing information. The application that owns the window draws the window contents to the appropriate bitmap, using any of the supported drawing modes (for example Quartz 2D, QuickDraw, OpenGL). Quartz Compositor then takes each window bitmap and composites them together using the associated information to create a display.

This allows the Mac OS X windowing system to be "agnostic in terms of a drawing model" and gives it the ability to create impressive visual effects, such as the genie effect as a window is minimised to the Dock.

Quartz Compositor in its role as window manager, also has an event queue which receives events (key strokes, mouse clicks, etc) from the I/O Kit. 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's own event queue.

Quartz Extreme

Starting with Mac OS X 10.2, Quartz Compositor was extended by Quartz Extreme, which uses OpenGL to render screen displays faster by presenting them as textures within a 3D OpenGL context. This permits faster compositing of screen images using 3D hardware acceleration.

To use Quartz Extreme, the Macintosh must have an AGP graphics card with support for arbitrary texture dimensions and a minimum of 16 MB of VRAM. In practice, this means either any nVidia or an ATI Radeon or better.

See also

External link

  • Quartz Extreme (http://www.apple.com/macosx/features/quartzextreme/) (apple.com)
  • The Graphics and Windowing Environment (http://developer.apple.com/documentation/MacOSX/Conceptual/SystemOverview/SystemArchitecture/chapter_3_section_4.html) - from Apple's Mac OS X Documentation
  • Quartz Services Reference (http://developer.apple.com/documentation/GraphicsImaging/Reference/Quartz_Services_Ref/)


Example Usage of Compositor

xeleleu: RT @sergio_xavier Consagrado Compositor pernambucano, Getúlio Cavalcanti, lança frevo em homenagem a Marina Silva http://bit.ly/6PXn2V
diegogpinheiro: RT @GameHall: Michael Jackson participou de Sonic 3, diz Compositor - http://tinyurl.com/yavdxqh
aniellybarros: ta virando Compositor mesmo né @pedrinhoFS :)
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.