Use Skia API to manually manage backbuffer memory
This is a clean up task similar to what we did for WrappedSkImage (https://chromium-review.googlesource.com/c/chromium/src/+/1651916): rather than keep an SkSurface around indefinitely to keep a ref on a GrBackendTexture, we explicitly allocate and destroy a GrBackendTexture and create an SkSurface on demand to mutate the GrBackendTexture. Bug: 974870 Change-Id: I0a8be55500e51d1c84312580e8b9410933dea6ea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1742286Reviewed-by:Sean Gilhuly <sgilhuly@chromium.org> Commit-Queue: Jonathan Backer <backer@chromium.org> Cr-Commit-Position: refs/heads/master@{#685194}
Showing
Please register or sign in to comment