mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1377687 - Clear cached resources in WebRenderBridgeParent::RecvClearCachedResources() r=nical
This commit is contained in:
parent
a7229793be
commit
f76bc78842
@ -837,6 +837,18 @@ WebRenderBridgeParent::RecvClearCachedResources()
|
||||
return IPC_OK();
|
||||
}
|
||||
mCompositorBridge->ObserveLayerUpdate(GetLayersId(), GetChildLayerObserverEpoch(), false);
|
||||
|
||||
// Clear resources
|
||||
// XXX Can we clear more resources?
|
||||
++mWrEpoch; // Update webrender epoch
|
||||
mApi->ClearRootDisplayList(wr::NewEpoch(mWrEpoch), mPipelineId);
|
||||
// Schedule composition to clean up Pipeline
|
||||
mCompositorScheduler->ScheduleComposition();
|
||||
// Remove animations.
|
||||
for (std::unordered_set<uint64_t>::iterator iter = mActiveAnimations.begin(); iter != mActiveAnimations.end(); iter++) {
|
||||
mAnimStorage->ClearById(*iter);
|
||||
}
|
||||
mActiveAnimations.clear();
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user