Bug 1742797 - Add a new IPC call to clear animation resources on WebRender, r=sotaro.

Differential Revision: https://phabricator.services.mozilla.com/D151481
This commit is contained in:
Hiroyuki Ikezoe
2022-07-19 19:56:21 +00:00
parent de9bfb0382
commit f8e2739919
8 changed files with 33 additions and 0 deletions

View File

@@ -622,6 +622,14 @@ void WebRenderLayerManager::ClearCachedResources() {
WrBridge()->EndClearCachedResources();
}
void WebRenderLayerManager::ClearAnimationResources() {
if (!WrBridge()->IPCOpen()) {
gfxCriticalNote << "IPC Channel is already torn down unexpectedly\n";
return;
}
WrBridge()->SendClearAnimationResources();
}
void WebRenderLayerManager::WrUpdated() {
ClearAsyncAnimations();
mStateManager.mAsyncResourceUpdates.reset();