Lazily Obtain the Compositor
If we set |compositor_| during AddedToWidget() and not call Play(), the compositor could shutdown and we would never clear |compositor_| since we're not registered as an AnimationObserver and will miss OnCompositingShuttingDown(). BUG=899112 Change-Id: If1dbe4ae9db80d55d3d5db6d939da6008bf97160 Reviewed-on: https://chromium-review.googlesource.com/c/1300694 Commit-Queue: Robert Liao <robliao@chromium.org> Reviewed-by:Michael Wasserman <msw@chromium.org> Reviewed-by:
Malay Keshav <malaykeshav@chromium.org> Cr-Commit-Position: refs/heads/master@{#603253}
Showing
Please register or sign in to comment