Bug 1622360 - Downgrade transactions from RenderRootArrays. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D73877
This commit is contained in:
Kartikaya Gupta
2020-05-05 18:15:33 +00:00
parent 41bccbc2c6
commit 9456ace708
3 changed files with 26 additions and 54 deletions

View File

@@ -307,8 +307,8 @@ AsyncImagePipelineManager::UpdateWithoutExternalImage(
}
void AsyncImagePipelineManager::ApplyAsyncImagesOfImageBridge(
wr::RenderRootArray<Maybe<wr::TransactionBuilder>>& aSceneBuilderTxns,
wr::RenderRootArray<Maybe<wr::TransactionBuilder>>& aFastTxns) {
wr::TransactionBuilder& aSceneBuilderTxn,
wr::TransactionBuilder& aFastTxn) {
if (mDestroyed || mAsyncImagePipelines.Count() == 0) {
return;
}
@@ -324,9 +324,8 @@ void AsyncImagePipelineManager::ApplyAsyncImagesOfImageBridge(
if (!pipeline->mImageHost->GetAsyncRef()) {
continue;
}
ApplyAsyncImageForPipeline(epoch, pipelineId, pipeline,
*aSceneBuilderTxns[pipeline->mRenderRoot],
*aFastTxns[pipeline->mRenderRoot]);
ApplyAsyncImageForPipeline(epoch, pipelineId, pipeline, aSceneBuilderTxn,
aFastTxn);
}
}