aw: Lazy allocate AwGLFunctor
Right now the lifetime of AwGLFunctor (and that of associated objects) roughly matches the lifetime of AwContents. This is not necessary, and we only need to ensure it's alive when functor is in use. This better matches the APIthat the vulkan functor will have. It also has the up side of converting CleanupReference usage to explicit destroy, which is always nice. Bug: 901554 Change-Id: Ib1126d1ddfeacc7b8c689aeb51bb897cf839b41c Reviewed-on: https://chromium-review.googlesource.com/c/1320749Reviewed-by:Tobias Sargeant <tobiasjs@chromium.org> Reviewed-by:
Chris Blume <cblume@chromium.org> Commit-Queue: Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#606512}
Showing
Please register or sign in to comment