Commit aee2ad5a authored by Adam Barth's avatar Adam Barth

Update engine

parent b9f28e6f
87de3c265ee01c2747695cd3fd053fd8362967a2 787e69fc453787089140b3b031ada932d7dad38e
...@@ -205,7 +205,7 @@ class RenderChildView extends RenderBox { ...@@ -205,7 +205,7 @@ class RenderChildView extends RenderBox {
void paint(PaintingContext context, Offset offset) { void paint(PaintingContext context, Offset offset) {
assert(needsCompositing); assert(needsCompositing);
if (_layoutInfo != null) if (_layoutInfo != null)
context.pushChildScene(offset, _layoutInfo); context.pushChildScene(offset, scale, _layoutInfo);
} }
void debugFillDescription(List<String> description) { void debugFillDescription(List<String> description) {
......
...@@ -108,14 +108,16 @@ class PictureLayer extends Layer { ...@@ -108,14 +108,16 @@ class PictureLayer extends Layer {
} }
class ChildSceneLayer extends Layer { class ChildSceneLayer extends Layer {
ChildSceneLayer({ this.offset, this.layoutInfo }); ChildSceneLayer({ this.offset, this.devicePixelRatio, this.layoutInfo });
Offset offset; Offset offset;
double devicePixelRatio;
mojom.ViewLayoutInfo layoutInfo; mojom.ViewLayoutInfo layoutInfo;
void addToScene(ui.SceneBuilder builder, Offset layerOffset) { void addToScene(ui.SceneBuilder builder, Offset layerOffset) {
builder.addChildScene( builder.addChildScene(
offset + layerOffset, offset + layerOffset,
devicePixelRatio,
layoutInfo.size.width, layoutInfo.size.width,
layoutInfo.size.height, layoutInfo.size.height,
layoutInfo.sceneToken.value layoutInfo.sceneToken.value
......
...@@ -191,9 +191,9 @@ class PaintingContext { ...@@ -191,9 +191,9 @@ class PaintingContext {
)); ));
} }
void pushChildScene(Offset offset, mojom.ViewLayoutInfo layoutInfo) { void pushChildScene(Offset offset, double devicePixelRatio, mojom.ViewLayoutInfo layoutInfo) {
_stopRecordingIfNeeded(); _stopRecordingIfNeeded();
_appendLayer(new ChildSceneLayer(offset: offset, layoutInfo: layoutInfo)); _appendLayer(new ChildSceneLayer(offset: offset, devicePixelRatio: devicePixelRatio, layoutInfo: layoutInfo));
} }
/// Push a rectangular clip rect. /// Push a rectangular clip rect.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment