DescriptionBug Fix: WebMediaPlayerMS Crashes
WebMediaPlayerMS owns WebMediaPlayerMSCompositor, but they live on two
different threads, and then there is a chance that when WebMediaPlayerMS
is destructed on the main thread, there are still tasks regarding
WebMediaPlayerMSCompositor on the compositor thread, and finally crash
will be observed.
Pass weak pointer to the PostTask call, then when the object is
destroyed, the task will be voided.
BUG=572398
Committed: https://crrev.com/09aac57cf764382bc667203bf4afc46b821fe2fc
Cr-Commit-Position: refs/heads/master@{#368472}
Patch Set 1 #Patch Set 2 : WeakPtr #Patch Set 3 : Still destroy WMPMSCompositor on compositor thread for clean up work safety. #
Total comments: 2
Patch Set 4 : WeakPtrFactory #
Total comments: 2
Patch Set 5 : Disallow Copy #
Messages
Total messages: 16 (6 generated)
|