Adds support of new mailbox type in SkiaOutputDeviceGL::GetGLImageForMailbox
SkiaOutputDeviceGL can sometimes look in the wrong place for a texture. It is using a deprecated system (MailboxManager) to find a texture based on a mailbox (which is just an opaque id), because existing Windows video overlay code still used the old GL texture system so the mapping is stored there. This CL adds code to look in the new shared images system to lookup a texture from a mailbox and it will be required when upcoming changes in "Zero-Copy Camera Capture Optimizations on Windows" [1] lands to ensure that Skia rendering also works with these new changes. The upcoming code uses the new system, so the mapping is stored there. Note that, the changes in this CL will not have any effect until the work in [1] lands in Chrome. [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1120900 Bug: 1120900 Change-Id: I09b5f0b06ff7539a9448a5b28bbfef89b3666331 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391236Reviewed-by:kylechar <kylechar@chromium.org> Commit-Queue: Henrik Andreasson <henrika@chromium.org> Cr-Commit-Position: refs/heads/master@{#804386}
Showing
Please register or sign in to comment