For multiplanar shared images, promise textures and surfaces are stored
per plane in the shared image backing/representations instead of
creating shared image per plane. This change adds the support for
multiple textures/surfaces in SkiaGLImageRepresentation which
will be used for multiplanar formats.
NOTE - This is pure refactoring and no logical changes. Need to add
support for getting the format/size per plane based on the format.
That will be done in follow-up changes.
Bug: 1366481
Change-Id: If9a5fcbf7b0272802218a3d872c130e39ce12671
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3998938
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: Kyle Charbonneau <kylechar@chromium.org>
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1071202}