Chromium Code Reviews
Description[Remoting Android] JniGlDisplayHandler calls invalidate() on UI thread
Currently the native pointer in GlDisplay is used on UI thread and null'ed
on display thread, and we check whether the pointer is null before using it.
If invalidate() is called between the check and actually calling the native
function then the app may crash.
This CL fixes this by making JniGlDisplayHandler call invalidate() on UI
thread.
BUG=646116
Committed: https://crrev.com/800d69331486e09464761a89d431027dd4d0acff
Cr-Commit-Position: refs/heads/master@{#419841}
Patch Set 1 #
Total comments: 1
Patch Set 2 : s/Native callbacks/Callbacks by native counterpart/ #
Total comments: 2
Patch Set 3 : null-check ui_task_poster_ before using it #
Total comments: 7
Patch Set 4 : Reviewer's Feedback #
Total comments: 10
Patch Set 5 : Reviewer's Feedback #Patch Set 6 : Merge ToT #Patch Set 7 : add null-check in deleter #
Total comments: 11
Patch Set 8 : Invalidate->Dtor pattern #Patch Set 9 : Remove DisplayUpdaterFactory #
Total comments: 6
Patch Set 10 : Reviewer's Feedback #
Messages
Total messages: 26 (7 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||