mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1779766 - Ensure DrawTargetWebgl is done using shmem before dealloc. r=aosmond,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151957
This commit is contained in:
parent
3eea487471
commit
db788f9953
@ -219,6 +219,8 @@ DrawTargetWebgl::~DrawTargetWebgl() {
|
||||
if (mShmem.IsWritable()) {
|
||||
// Force any Skia snapshots to copy the shmem before it deallocs.
|
||||
mSkia->DetachAllSnapshots();
|
||||
// Ensure we're done using the shmem before dealloc.
|
||||
mSharedContext->WaitForShmem();
|
||||
auto* child = mSharedContext->mWebgl->GetChild();
|
||||
if (child && child->CanSend()) {
|
||||
child->DeallocShmem(mShmem);
|
||||
|
Loading…
Reference in New Issue
Block a user