mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1632755 - Unlink CanvasContext from the refresh driver r=aosmond
It looks like the context is registered to the refresh driver without my direct interaction, yet I'm responsible to unlink it. Looks like a bad design to me? Differential Revision: https://phabricator.services.mozilla.com/D72469
This commit is contained in:
parent
ebafd74216
commit
0dc10fb897
@ -32,7 +32,10 @@ CanvasContext::CanvasContext()
|
||||
: mExternalImageId(layers::CompositorManagerChild::GetInstance()
|
||||
->GetNextExternalImageId()) {}
|
||||
|
||||
CanvasContext::~CanvasContext() { Cleanup(); }
|
||||
CanvasContext::~CanvasContext() {
|
||||
Cleanup();
|
||||
RemovePostRefreshObserver();
|
||||
}
|
||||
|
||||
void CanvasContext::Cleanup() {
|
||||
if (mSwapChain) {
|
||||
|
Loading…
Reference in New Issue
Block a user