Bug 1765366 - Do not send transaction if renderer is already destroyed in WebRenderAPI::SendTransaction() r=gfx-reviewers,lsalzman

When WebRenderAPI::DestroyRenderer() is called at root WebRenderAPI, non-root WebRenderAPI should not sent transaction.

Differential Revision: https://phabricator.services.mozilla.com/D144020
This commit is contained in:
sotaro 2022-04-20 05:50:14 +00:00
Родитель f82f54685f
Коммит 0484491b53
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -458,6 +458,9 @@ void WebRenderAPI::UpdateDebugFlags(uint32_t aFlags) {
}
void WebRenderAPI::SendTransaction(TransactionBuilder& aTxn) {
if (mRootApi && mRootApi->mRendererDestroyed) {
return;
}
wr_api_send_transaction(mDocHandle, aTxn.Raw(), aTxn.UseSceneBuilderThread());
}