Revert "Reland: "Use texture layer when displaying an Android view" (#100934)" (#100950)

This reverts commit 61c30eed4f.
This commit is contained in:
Zachary Anderson
2022-03-29 08:27:55 -07:00
committed by GitHub
parent b4325b68a2
commit 37d619d228
11 changed files with 240 additions and 304 deletions

View File

@@ -59,58 +59,10 @@ Future<void> main() async {
}, timeout: Timeout.none);
});
group('Flutter surface without hybrid composition', () {
group('Flutter surface switch', () {
setUpAll(() async {
await driver.tap(find.byValueKey('NestedViewEventTile'));
});
tearDownAll(() async {
await driver.waitFor(find.pageBack());
await driver.tap(find.pageBack());
});
test('Uses FlutterSurfaceView when Android view is on the screen', () async {
await driver.waitFor(find.byValueKey('PlatformView'));
expect(
await driver.requestData('hierarchy'),
'|-FlutterView\n'
' |-FlutterSurfaceView\n' // Flutter UI
' |-ViewGroup\n' // Platform View
' |-ViewGroup\n'
);
// Hide platform view.
final SerializableFinder togglePlatformView = find.byValueKey('TogglePlatformView');
await driver.tap(togglePlatformView);
await driver.waitForAbsent(find.byValueKey('PlatformView'));
expect(
await driver.requestData('hierarchy'),
'|-FlutterView\n'
' |-FlutterSurfaceView\n' // Just the Flutter UI
);
// Show platform view again.
await driver.tap(togglePlatformView);
await driver.waitFor(find.byValueKey('PlatformView'));
expect(
await driver.requestData('hierarchy'),
'|-FlutterView\n'
' |-FlutterSurfaceView\n' // Flutter UI
' |-ViewGroup\n' // Platform View
' |-ViewGroup\n'
);
}, timeout: Timeout.none);
});
group('Flutter surface with hybrid composition', () {
setUpAll(() async {
await driver.tap(find.byValueKey('NestedViewEventTile'));
await driver.tap(find.byValueKey('ToggleHybridComposition'));
await driver.tap(find.byValueKey('TogglePlatformView'));
await driver.tap(find.byValueKey('TogglePlatformView'));
final SerializableFinder wmListTile = find.byValueKey('NestedViewEventTile');
await driver.tap(wmListTile);
});
tearDownAll(() async {