Unverified Commit bf5d2b87 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Prepare for dynamically sized views (#138565)

Towards https://github.com/flutter/flutter/issues/134501.

Required to roll https://github.com/flutter/engine/pull/48090 into the framework.

**DO NOT SUBMIT until https://github.com/flutter/flutter/pull/138648 and https://github.com/flutter/engine/pull/48090 are ready.**
parent ec639f35
...@@ -188,7 +188,7 @@ class FakeFlutterView extends Fake implements FlutterView { ...@@ -188,7 +188,7 @@ class FakeFlutterView extends Fake implements FlutterView {
List<Scene> renderedScenes = <Scene>[]; List<Scene> renderedScenes = <Scene>[];
@override @override
void render(Scene scene) { void render(Scene scene, {Size? size}) {
renderedScenes.add(scene); renderedScenes.add(scene);
} }
} }
......
...@@ -874,7 +874,8 @@ class TestFlutterView implements FlutterView { ...@@ -874,7 +874,8 @@ class TestFlutterView implements FlutterView {
} }
@override @override
void render(Scene scene) { void render(Scene scene, {Size? size}) {
// TODO(goderbauer): Wire through size after https://github.com/flutter/engine/pull/48090 rolled in.
_view.render(scene); _view.render(scene);
} }
...@@ -1635,7 +1636,8 @@ class TestWindow implements SingletonFlutterWindow { ...@@ -1635,7 +1636,8 @@ class TestWindow implements SingletonFlutterWindow {
'This feature was deprecated after v3.9.0-0.1.pre.' 'This feature was deprecated after v3.9.0-0.1.pre.'
) )
@override @override
void render(Scene scene) { void render(Scene scene, {Size? size}) {
// TODO(goderbauer): Wire through size after https://github.com/flutter/engine/pull/48090 rolled in.
_view.render(scene); _view.render(scene);
} }
......
...@@ -390,7 +390,7 @@ class _FakeFlutterView extends Fake implements FlutterView { ...@@ -390,7 +390,7 @@ class _FakeFlutterView extends Fake implements FlutterView {
} }
@override @override
void render(Scene scene) { void render(Scene scene, {Size? size}) {
lastRenderedScene = scene; lastRenderedScene = scene;
} }
} }
......
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