Cherry-pick: Mailbox emulation with EGLImage
Cherry-pick of https://codereview.chromium.org/180723023/ PS6
This adds support for sharing image buffers through EGLImage-like
semantics. It's made to look as if textures were shared through
mailboxes by creating multiple Texture instances and synchronizing
parameters and image handle etc. across MailboxManager instances (for
example across contexts and possibly GPU threads).
Since GL clients are async anyways, it only guarantees that changes to
the texture structure or filters become visible after the client has
waited on a sync point, while fences are used to synchronize read/write
access to the underlying buffer.
29 files changed