Skip to content

Commit ccb2b44

Browse files
authored
Using initExpensiveAndroidView for Android Hybrid Composition Mode (#142399)
After flutter/flutter#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. flutter/engine#49414
1 parent 40ecbc8 commit ccb2b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/benchmarks/platform_views_layout_hybrid_composition/lib/android_platform_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AndroidPlatformView extends StatelessWidget {
3434
);
3535
},
3636
onCreatePlatformView: (PlatformViewCreationParams params) {
37-
return PlatformViewsService.initSurfaceAndroidView(
37+
return PlatformViewsService.initExpensiveAndroidView(
3838
id: params.id,
3939
viewType: viewType,
4040
layoutDirection: TextDirection.ltr,

0 commit comments

Comments
 (0)