-
Notifications
You must be signed in to change notification settings - Fork 6k
Embedders use DisplayListBuilder for compositing #35170
Conversation
bdero
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the Fuchsia embedder needs to be updated to use the new wrappers as well, but otherwise LGTM. 👍
shell/platform/android/external_view_embedder/external_view_embedder.cc
Outdated
Show resolved
Hide resolved
| .checkerboard_offscreen_layers = checkerboard_offscreen_layers_, | ||
| .frame_device_pixel_ratio = device_pixel_ratio_, | ||
| .raster_cached_entries = &raster_cache_items_, | ||
| .display_list_enabled = frame.display_list_builder() != nullptr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if I'm understanding this right, this always ends up being true for Impeller because Impeller's Surfaces always produce SurfaceFrames that have a display list builder, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is true iff Impeller is being used.
We might eventually switch to all DLs all the time even for Skia, but that remains to be seen.
Fixes: flutter/flutter#104025
Labelling a WIP for now until I can test on Android, but I was able to get an embedded Google Map to show underneath the flutter navigation layers on iPhone with this code. Theoretically it will also work for Android.