Polish up metadata propagation for native window
Allow for native window apis to attempt to apply gralloc4 metadata whenever a buffer is queued onto a native window for dataspace and existing apis for HDR metadata. Motivation: 1. We are attempting to move to Gralloc 4 metadata as the source of truth for this information, rather than a separate side-channel. 2. ANativeWindow_setBuffersDataspace is a public api, but gralloc4 metadata is not public, so the only way to keep the gralloc4 metadata in sync for dataspace is to intercept on Surface. 3. HDR Metadata may be applied on eglSurface and vkSwapchain, which must be propagated to gralloc4 metadata to ensure consistency. 4. None of the plumbing for setting gralloc4 metadata existed, so now's a good time as any to add the plumbing so that we can start at least best-effort using this metadata infrastructure in the framework and so that vendor's don't have to reinvent setting metadata. Bug: 210498094 Test: builds, boots Change-Id: I6d19dc4ceca8fa885363faf84f57885e58e88240
Loading
Please register or sign in to comment