Bug 1874684 - Part 28: Return DateDuration from DifferenceISODateTime. r=mgaudet
[gecko.git] / gfx / docs / Moz2D.rst
blob0be251a209c42758b7924cf8f1cd353870a8caac
1 Moz2D
2 ========================
4 The `gfx/2d` contains our abstraction of a typical 2D API (similar
5 to the HTML Canvas API). It has different backends used for different
6 purposes. Direct2D is used for implementing hardware accelerated
7 canvas on Windows. Skia is used for any software drawing needs and
8 Cairo is used for printing.
10 Previously, Moz2D aimed to be buildable independently from the rest of
11 Gecko but we've slipped from this because C++/Gecko don't have a good
12 mechanism for modularization/dependencies. That being said, we still try
13 to keep the coupling with the rest of Gecko low for hygiene, simplicity
14 and perhaps a more modular future.
16 See also `Moz2D documentation on wiki <https://wiki.mozilla.org/Platform/GFX/Moz2D>`.