| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
base::Unretained(this));The lifecycle of the FlatlandSysmemBufferManager is unclear to me that I'm not sure if this `Unretained(this)` is safe. But looking at other parts of flatland, this seems to be common. Ideally we should look into making the flatland sysmem-related code thread-bound, but for now, this is OK with me.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[flatland] Use Flatland Allocator only on its bound thread
FlatlandSysmemBufferManager binds its
fuchsia::ui::composition::AllocatorPtr on the GPU main thread, but
SurfaceFactoryOzone::CreateNativePixmap() may be called on any thread,
which previously routed RegisterBufferCollection() to the proxy from the
calling thread. fidl::InterfacePtr is not thread-safe.
FlatlandSysmemBufferCollection now takes a callback to register with the
Flatland allocator instead of a raw proxy pointer, and
FlatlandSysmemBufferManager bounces the FIDL call onto the thread that
bound the InterfacePtr.
Add FlatlandSysmemBufferManagerTest covering same-thread and
cross-thread registration.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |