Allow functor destroy to happen on render thread |
|
Issue descriptionSupport behavior where we get destroy callback for functor on RT and do not have access to synchronous invoke functor. This is to support vulkan functor that probably will work this way, but should try converge GL and VK functor code paths, so should try to convert GL functor now and see how things shake out.
,
Nov 8
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/523d01b80d212e827df97656698cf68a9e5bc64e commit 523d01b80d212e827df97656698cf68a9e5bc64e Author: Bo Liu <boliu@chromium.org> Date: Thu Nov 08 17:26:53 2018 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/1320749 Reviewed-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} [modify] https://crrev.com/523d01b80d212e827df97656698cf68a9e5bc64e/android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java [modify] https://crrev.com/523d01b80d212e827df97656698cf68a9e5bc64e/android_webview/java/src/org/chromium/android_webview/AwContents.java [modify] https://crrev.com/523d01b80d212e827df97656698cf68a9e5bc64e/android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java [modify] https://crrev.com/523d01b80d212e827df97656698cf68a9e5bc64e/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java |
|
►
Sign in to add a comment |
|
Comment 1 by boliu@chromium.org
, Nov 6