Move all YUVA image creation in GMs into sk_gpu_test::LazyYUVImage.

LazyYUVImage now supports making images from a generator and from
textures. It uses ManagedBackendTexture to manage texture plane
lifetime via ref-counting.

Adds some supporting utility functions to SkYUVAInfo and

Eases transition of forthcoming MakeFromYUVATextures API change.

Bug: skia:10632

Change-Id: I8cfd747c27076d1627da6ea8a169e554a96049e0
Reviewed-by: Robert Phillips <>
Commit-Queue: Brian Salomon <>
14 files changed