Chromium Code Reviews
Descriptionaw: Use functor released callback for lifetime management
This is a smaller CL for merging to m51 branch. Has similar caveats to
r386831 so not restating them here.
This CL does these things:
* Expose the new callback from android on the callDrawGlFunction
function.
* Use the callback only as a strong reference to keep view
CleanupReferences alive. The actual callback is a no-op for now.
* AwGLFunctor will always hold a the NativeGLDelegate and ContainerView
This is important in case destroy comes after detach.
* AwContents.DestroyRunnable only holds the DestroyRunnable of
AwGLFunctor instead of AwGLFunctor itself to prevent GC leaks.
BUG=597167
TBR=tobiasjs@chromium.org
Committed: https://crrev.com/c748c90944d0a21be20b4a0d8844e51bc828f659
Cr-Commit-Position: refs/heads/master@{#387926}
Patch Set 1 #Patch Set 2 : fix test #Patch Set 3 : more clean up, maybe fix gc test? #Patch Set 4 : set rtm to null? #Patch Set 5 : fix UAF for realz #
Messages
Total messages: 23 (7 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||