Gecko:Overview: Difference between revisions

Jump to navigation Jump to search
Remove some outdated painting content
(Add layers rendering pipeline overview image)
(Remove some outdated painting content)
Line 686: Line 686:
[[File:Layers pipeline overview.png|650px|thumb|Layers pipeline overview]]
[[File:Layers pipeline overview.png|650px|thumb|Layers pipeline overview]]


Painting/rendering/rasterizing is the step where graphical primitives (such as a command to fill an [https://developer.mozilla.org/en-US/docs/Web/SVG SVG] circle, or a [https://developer.mozilla.org/en-US/docs/Web/Guide/Graphics/Drawing_graphics_with_canvas canvas] command to stroke a path between x, y, z, or the internally produced command to draw the edge of an HTML div's border) are used to color in the pixels of a surface so that the surface "displays" those rasterized primitives.
Painting/rendering/rasterizing is the step where graphical primitives (such as a command to fill an [https://developer.mozilla.org/en-US/docs/Web/SVG SVG] circle, or the internally produced command to draw a rounded rectangle) are used to color in the pixels of a surface so that the surface "displays" those rasterized primitives.


The platform independent library that gecko uses to render is [http://dxr.mozilla.org/mozilla-central/source/gfx/2d/2D.h Moz2D]. Gecko code paints into Moz2D DrawTarget objects (the DrawTarget baseclass having multiple platform dependent subclasses). (At least this is where gecko is going - for now there is still significant amounts of code that uses [http://dxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxContext.h Thebes gfxContext] objects or the even older nsRenderingContext objects. Objects of these types now always wrap a DrawTarget so all painting does now go through Moz2D, but conversion to use the wrapped DrawTargets directly is taking time since consumer code can sometimes need to be radically rewritten to fit the Moz2D API and immediate mode paradigm.)
The platform independent library that gecko uses to render is [http://dxr.mozilla.org/mozilla-central/source/gfx/2d/2D.h Moz2D]. Gecko code paints into Moz2D DrawTarget objects (the DrawTarget base class having multiple platform dependent subclasses).


==== Compositing ====
==== Compositing ====
Confirmed users
138

edits

Navigation menu