зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1342762 - Remove pipeline in RemovePipelineIdForCompositable. r=nical
MozReview-Commit-ID: 29NrWHCGR5V --HG-- extra : rebase_source : 25a4fc2f1abef15dbf5515516a45a34079acc8dd
This commit is contained in:
Родитель
f058f3b817
Коммит
78bddf84f9
|
@ -855,6 +855,7 @@ WebRenderBridgeParent::RecvRemovePipelineIdForCompositable(const wr::PipelineId&
|
|||
wrHost->ClearWrBridge();
|
||||
mAsyncImageManager->RemoveAsyncImagePipeline(aPipelineId);
|
||||
mAsyncCompositables.Remove(wr::AsUint64(aPipelineId));
|
||||
mApi->RemovePipeline(aPipelineId);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
|
|
|
@ -438,6 +438,12 @@ WebRenderAPI::SetRootPipeline(PipelineId aPipeline)
|
|||
wr_api_set_root_pipeline(mDocHandle, aPipeline);
|
||||
}
|
||||
|
||||
void
|
||||
WebRenderAPI::RemovePipeline(PipelineId aPipeline)
|
||||
{
|
||||
wr_api_remove_pipeline(mDocHandle, aPipeline);
|
||||
}
|
||||
|
||||
void
|
||||
WebRenderAPI::UpdateResources(ResourceUpdateQueue& aUpdates)
|
||||
{
|
||||
|
|
|
@ -164,6 +164,8 @@ public:
|
|||
|
||||
void SetRootPipeline(wr::PipelineId aPipeline);
|
||||
|
||||
void RemovePipeline(wr::PipelineId aPipeline);
|
||||
|
||||
void UpdateResources(ResourceUpdateQueue& aUpdates);
|
||||
|
||||
void UpdatePipelineResources(ResourceUpdateQueue& aUpdates, PipelineId aPipeline, Epoch aEpoch);
|
||||
|
|
|
@ -891,6 +891,12 @@ pub extern "C" fn wr_api_set_root_pipeline(dh: &mut DocumentHandle,
|
|||
dh.api.set_root_pipeline(dh.document_id, pipeline_id);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn wr_api_remove_pipeline(dh: &mut DocumentHandle,
|
||||
pipeline_id: WrPipelineId) {
|
||||
dh.api.remove_pipeline(dh.document_id, pipeline_id);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn wr_api_set_window_parameters(dh: &mut DocumentHandle,
|
||||
width: i32,
|
||||
|
|
|
@ -1005,6 +1005,11 @@ WR_INLINE
|
|||
WrIdNamespace wr_api_get_namespace(DocumentHandle *aDh)
|
||||
WR_FUNC;
|
||||
|
||||
WR_INLINE
|
||||
void wr_api_remove_pipeline(DocumentHandle *aDh,
|
||||
WrPipelineId aPipelineId)
|
||||
WR_FUNC;
|
||||
|
||||
WR_INLINE
|
||||
void wr_api_send_external_event(DocumentHandle *aDh,
|
||||
size_t aEvt)
|
||||
|
|
Загрузка…
Ссылка в новой задаче