Gecko:Layers: Difference between revisions

Jump to navigation Jump to search
Line 206: Line 206:


To support drawWindow and printing, we need to be able to draw a layer tree to any target, with maximum possible fidelity.
To support drawWindow and printing, we need to be able to draw a layer tree to any target, with maximum possible fidelity.
For printing, it would be enough to create a LayerManager for a destination gfxContext* and build a new set of layers for it. This would use the immediate-mode implementation described above. This implies that we need to have multiple implementations compiled in. Also, even if we disable 3D rendering on non-accelerated systems, we'll still want to have a complete software fallback (using pixman transforms?) for printing.
For drawWindow, we probably want the ability to retarget an existing set of layers to draw them to a different context.
Maybe we should add to LayerManager a method
void beginTransactionWithTarget(gfxContext* aDestination);
and a way to construct a LayerManager with a device context for printing. When you end the transaction started with beginTransactionWithTarget, everything is guaranteed to have been rendered to the destination context.


= Jeff =
= Jeff =
1,295

edits

Navigation menu