mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Using initExpensiveAndroidView
for Android Hybrid Composition Mode (#142399)
After https://github.com/flutter/flutter/pull/100990, we should use `initExpensiveAndroidView` for Android Hybrid Composition mode instead of `initSurfaceAndroidView`. `initSurfaceAndroidView` attempts to use `TLHC` when possible. In cases where that is not supported, it falls back to using Hybrid Composition. https://github.com/flutter/engine/pull/49414
This commit is contained in:
parent
40ecbc81b9
commit
ccb2b4439a
@ -34,7 +34,7 @@ class AndroidPlatformView extends StatelessWidget {
|
||||
);
|
||||
},
|
||||
onCreatePlatformView: (PlatformViewCreationParams params) {
|
||||
return PlatformViewsService.initSurfaceAndroidView(
|
||||
return PlatformViewsService.initExpensiveAndroidView(
|
||||
id: params.id,
|
||||
viewType: viewType,
|
||||
layoutDirection: TextDirection.ltr,
|
||||
|
Loading…
Reference in New Issue
Block a user