DescriptionMade the CompositorAnimationObserver class usable
If you use CompositorAnimationObserver, you must check
compositor's shutdown. Otherwise there is a crash when
you unsubscribe because of compositor's delete.
There is workaround: to inheritance from
CompositorObserver and listen for OnCompositingShuttingDown.
But this is not graceful solution.
So I added OnCompositingShuttingDown to CompositorAnimationObserver.
I fixed potentional crash and wrote a test.
R=ajuma, danakj
Committed: https://crrev.com/adf2ce86bc9c62d6a192fdfb1e8af246ec01c32d
Cr-Commit-Position: refs/heads/master@{#332480}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fixes #Patch Set 3 : Fixes #
Total comments: 1
Patch Set 4 : nit #
Total comments: 3
Patch Set 5 : remove if #
Messages
Total messages: 19 (4 generated)
|