Unverified Commit ccb2b443 authored by Rulong Chen(陈汝龙)'s avatar Rulong Chen(陈汝龙) Committed by GitHub

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
parent 40ecbc81
......@@ -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,
......
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