gpu: Add SharedImage usage for native buffers
This small CL introduces an addition to the SharedImageUsage enum: SHARED_IMAGE_USAGE_NATIVE_BUFFER. It will be used in the shared image factory to determine the correct type of factory (interop_backing_factory) to be used for platform specific tasks such as VA-API decoding on Chrome OS. The goal of this new usage is that on Chrome OS, a SharedImage created using SHARED_IMAGE_USAGE_NATIVE_BUFFER should have an underlying buffer and representations suitable for working with a video acceleration API. In the case of VA-API, this means the underlying buffer should be a NativePixmap. Separate CL: https://chromium-review.googlesource.com/c/chromium/src/+/2083662 BUG=1058103 TEST=None Change-Id: I7159163b5cc276f9ea4f6d5a6c0835b66bd72c89 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089951 Commit-Queue: Paulo Warren <pwarren@chromium.org> Reviewed-by:Khushal <khushalsagar@chromium.org> Reviewed-by:
Andres Calderon Jaramillo <andrescj@chromium.org> Cr-Commit-Position: refs/heads/master@{#749197}
Showing
Please register or sign in to comment