Commit 91bcf663 authored by Adam Barth's avatar Adam Barth

Merge pull request #2630 from abarth/rev_engine

Update engine
parents b9f28e6f aee2ad5a
87de3c265ee01c2747695cd3fd053fd8362967a2
787e69fc453787089140b3b031ada932d7dad38e
......@@ -205,7 +205,7 @@ class RenderChildView extends RenderBox {
void paint(PaintingContext context, Offset offset) {
assert(needsCompositing);
if (_layoutInfo != null)
context.pushChildScene(offset, _layoutInfo);
context.pushChildScene(offset, scale, _layoutInfo);
}
void debugFillDescription(List<String> description) {
......
......@@ -108,14 +108,16 @@ class PictureLayer extends Layer {
}
class ChildSceneLayer extends Layer {
ChildSceneLayer({ this.offset, this.layoutInfo });
ChildSceneLayer({ this.offset, this.devicePixelRatio, this.layoutInfo });
Offset offset;
double devicePixelRatio;
mojom.ViewLayoutInfo layoutInfo;
void addToScene(ui.SceneBuilder builder, Offset layerOffset) {
builder.addChildScene(
offset + layerOffset,
devicePixelRatio,
layoutInfo.size.width,
layoutInfo.size.height,
layoutInfo.sceneToken.value
......
......@@ -191,9 +191,9 @@ class PaintingContext {
));
}
void pushChildScene(Offset offset, mojom.ViewLayoutInfo layoutInfo) {
void pushChildScene(Offset offset, double devicePixelRatio, mojom.ViewLayoutInfo layoutInfo) {
_stopRecordingIfNeeded();
_appendLayer(new ChildSceneLayer(offset: offset, layoutInfo: layoutInfo));
_appendLayer(new ChildSceneLayer(offset: offset, devicePixelRatio: devicePixelRatio, layoutInfo: layoutInfo));
}
/// 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