vulkan: fix layout and queue family problems with ExternalVkImageBacking

1. For the first time GL access, the backing's queue family could be not
   VK_QUEUE_FAMILY_EXTERNAL. We need to transfer it to external for GL
2. SkiaOutputDeviceBufferQueue doesn't set backing's layout and queue
   family after Skia write access. Fix it by override
   PreGrContextSubmitz() to set the backing's layout and queue family.

Bug: 1101167
Change-Id: I2f2f527ffb6f4b56e0042c8762cdb93eea4b6942
Reviewed-by: Vasiliy Telezhnikov <>
Commit-Queue: Peng Huang <>
Cr-Original-Commit-Position: refs/heads/master@{#786453}
Cr-Mirrored-Commit: a9affd1df83ea7a4e94c929c59f59613f9872037
4 files changed