1,297 bytes added,
01:55, 14 August 2013 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:
* [http://www.basschouten.com/blog1.php/progress-on-moz2d 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:
* [https://blog.mozilla.org/joe/2011/04/26/introducing-the-azure-project/ Introducing the Azure Project]
* [http://people.mozilla.com/~roc/Samsung/Mozilla2DGraphics.pdf Mozilla 2D graphics] (PDF)
* [http://robert.ocallahan.org/2011/09/graphics-api-design.html Graphics API Design]