Skip to content
Snippets Groups Projects
Commit 64c6d852 authored by sotaro's avatar sotaro
Browse files

Bug 1828570 - Clear mCurrentTextureHost in...

Bug 1828570 - Clear mCurrentTextureHost in WebRenderImageHost::UseTextureHost() when mCurrentTextureHost wraps remote texture r=gfx-reviewers,lsalzman

The problem occurred when the remote texture fell back to the normal TextureHost.

mCurrentTextureHost have to be cleared in WebRenderImageHost::UseTextureHost() when mCurrentTextureHost wraps remote texture. When WebRenderImageHost::UseTextureHost() is called mCurrentTextureHost is chosen in WebRenderImageHost::GetAsTextureHostForComposite(). In the GetAsTextureHostForComposite(), mCurrentTextureHost should not wrap remote texture.

Differential Revision: https://phabricator.services.mozilla.com/D175838
parent 8d496ec4
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,11 @@ void WebRenderImageHost::UseTextureHost(
mPendingRemoteTextureWrappers.clear();
}
if (mCurrentTextureHost &&
mCurrentTextureHost->AsRemoteTextureHostWrapper()) {
mCurrentTextureHost = nullptr;
}
nsTArray<TimedImage> newImages;
for (uint32_t i = 0; i < aTextures.Length(); ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment