Platform/GFX/Moz2D

From MozillaWiki
< Platform‎ | GFX
Revision as of 01:55, 14 August 2013 by Brian (talk | contribs) (Initial skeleton of combined Moz2D page)
Jump to navigation Jump to search

The Moz2D graphics API, part of the Azure project, is a cross-platform interface onto the various graphics backends that Gecko uses for rendering such as Direct2D (1.0 and 1.1), Skia, Quartz, and NV Path. Adding a new graphics platform to Gecko is accomplished by adding a backend to Moz2D (see #Implementing a new backend).

Some of the notable features of the API are:

  • Mostly stateless—better suited to CSS rendering and eliminates overhead
  • Floating-point—better suits platform APIs
  • API methods line up with HTML canvas

Current status

Further resources:

Stateless vs stateful

Learning Moz2D: Introducing the API

Source surfaces

Draw targets

Developing Moz2D

Building Moz2D

Testing Moz2D: Player2D

Implementing a new backend

Further reading

The following resources describe the motivation for and goals of this API: