Add Vulkan support in SkiaOutputSurfaceImpl::YUVAPromiseTextureHelper

Previously SkiaOutputSurfaceImpl::YUVAPromiseTextureHelper was always
trying to create GL GrBackendFormat to makeYUVAPromiseTexture() even
when Vulkan is being used by the renderer. As the result it was failing
to render video. Updated it to use GrBackendFormat::MakeVk() when using
Vulkan backend.

Bug: 942370
Change-Id: I3806ec1ea8e728639599e3844eb5b9f7a0fadecb
Commit-Queue: Sergey Ulanov <>
Auto-Submit: Sergey Ulanov <>
Reviewed-by: Antoine Labour <>
Reviewed-by: Peng Huang <>
Cr-Commit-Position: refs/heads/master@{#641322}
2 files changed