Chromium Code Reviews
DescriptionRemove DrawGLFunctor CleanupReference.
Instead of having Java DrawGLFunctor register a CleanupReference to
destroy its native counterpart, it provides a method to get a destroy
runnable that performs this function, and it is up to the owner of the
Java DrawGLFunctor object to call it at the appropriate time (i.e. when
the native DrawGLFunctor is no longer referenced by the render thread
display list).
The AwGLFunctor DestroyRunnable holds a reference to the DrawGLFunctor
DestroyRunnable, so that it can call it once AwGLFunctor is GC'ed.
BUG=597167
Committed: https://crrev.com/fece06881fde15ddb181b3af43c3912457fca427
Cr-Commit-Position: refs/heads/master@{#390130}
Patch Set 1 #
Total comments: 5
Patch Set 2 : make Runnable static, throw if native DrawGLFunctor destroyed #
Messages
Total messages: 10 (4 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||