зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f82f54685f
Коммит
0484491b53
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче