Platform/GFX/Moz2D
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:
- Progress on Moz2D - July 2013 update
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: