Add PaintingContext which has-a sky.Canvas instead of is-a sky.Canvas
We'll need this for compositing because we need to switch out the sky.Canvas when we switch compositing layers.
This commit is contained in:
@@ -321,7 +321,8 @@ class SpriteBox extends RenderBox {
|
||||
_rootNode._invalidateToBoxTransformMatrix();
|
||||
}
|
||||
|
||||
void paint(PaintingCanvas canvas, Offset offset) {
|
||||
void paint(PaintingContext context, Offset offset) {
|
||||
final PaintingCanvas canvas = context.canvas;
|
||||
canvas.save();
|
||||
|
||||
// Move to correct coordinate space before drawing
|
||||
|
||||
Reference in New Issue
Block a user