Use ProxyTexture::texture()::textureInfo() to determine depth
ProxyTexture::textureInfo() may don't have the main texture
format and aspect information, it is becasue those informations
are not determined until promise textures are fulfilled. So use
the textureInfo() from fulfilled texture.
Bug: chromium:324422644
Change-Id: I6595f8d1f7cd8b5f5eafb121ddcb35ebf68b404a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/823079
Commit-Queue: Peng Huang <penghuang@chromium.org>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Nolan Scobie <nscobie@google.com>
1 file changed