SharedImageBackingGLImage: Use Retain/Release to scope GL texture
Change SharedImageBackingGLImage to not allocate a GL texture until it is going to be used, and also delete the GL texture when it is no longer in use. This is needed for Metal-only SkiaRenderer, where we really don't want to be using GL (and actually can't, because there isn't a context hanging around at all times). TBR=geofflang Bug: 1092155 Change-Id: I6c14d03b50f40bd96de1c0c7355c03493c22865d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2298723Reviewed-by:Geoff Lang <geofflang@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#789707}
Showing
This diff is collapsed.
Please register or sign in to comment