[vulkan] VK_ANDROID_native_buffer: encoder generation

bug: 111137294
bug: 119426975

This provides a mechanism for the encoder to do custom things in the
course of filling out the local copies to send over.

The first use case of this is to edit the local copy of any
VkNativeBufferANDROID extension struct so that instead of the full
native_handle we just pass the host ColorBuffer, and a custom wrapper
around the nativeFenceFd in vkAcquireImageANDROID so we can wait on it
in the guest.

Change-Id: Id5a2b9721287d9698460f1cb3847276438b22e13
2 files changed
tree: e1fb5f1adfab0d54cea9830b2847c0f95dad7d7e
  1. registry/