Reland: "Always use texture layer when displaying an Android view" (#100237)

This commit is contained in:
Emmanuel Garcia
2022-03-17 12:46:26 -07:00
committed by GitHub
parent a618ca27a7
commit d92fedcccb
8 changed files with 173 additions and 266 deletions

View File

@@ -76,11 +76,9 @@ Future<void> main() async {
expect(
await driver.requestData('hierarchy'),
'|-FlutterView\n'
' |-FlutterSurfaceView\n' // Flutter UI (hidden)
' |-FlutterImageView\n' // Flutter UI (background surface)
' |-FlutterSurfaceView\n' // Flutter UI
' |-ViewGroup\n' // Platform View
' |-ViewGroup\n'
' |-FlutterImageView\n' // Flutter UI (overlay surface)
);
// Hide platform view.
@@ -101,11 +99,9 @@ Future<void> main() async {
expect(
await driver.requestData('hierarchy'),
'|-FlutterView\n'
' |-FlutterSurfaceView\n' // Flutter UI (hidden)
' |-FlutterImageView\n' // Flutter UI (background surface)
' |-FlutterSurfaceView\n' // Flutter UI
' |-ViewGroup\n' // Platform View
' |-ViewGroup\n'
' |-FlutterImageView\n' // Flutter UI (overlay surface)
);
}, timeout: Timeout.none);
});