DescriptionMake CanvasRenderingContext not inherit from ActiveDOMObject
The first step before sharing CanvasRenderingContext (CRC) between
HTMLCanvasElement and OffscreenCanvas is to take away the inheritance
relationship between CRC and ActiveDOMObject. It is not right that both
HTMLCanvasElement and its associated CRC are monitoring Document separately.
Instead, we add willDetachDocument() to DocumentVisibilityObserver, so that
when Document is detached, HTMLCanvasElement will notice this change and call
willDetachDocument() to promptly propagates the change to its associated CRC,
and CRC will invoke stop() to lose context.
BUG=563826
Committed: https://crrev.com/9c74567e241b46365ecb48f88c62ff5b993ae2bb
Cr-Commit-Position: refs/heads/master@{#373711}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Make the function pure virtual #
Messages
Total messages: 10 (5 generated)
|