Bug 1356944 - Fix external image id allocation of WebRenderTextureHost r=nical

This commit is contained in:
sotaro
2017-04-20 10:24:13 +09:00
parent befcb6bbac
commit 8305f0b97e
32 changed files with 114 additions and 58 deletions

View File

@@ -891,11 +891,15 @@ TextureClient::InitIPDLActor(CompositableForwarder* aForwarder)
return false;
}
// Try external image id allocation.
mExternalImageId = aForwarder->GetTextureForwarder()->GetNextExternalImageId();
PTextureChild* actor = aForwarder->GetTextureForwarder()->CreateTexture(
desc,
aForwarder->GetCompositorBackendType(),
GetFlags(),
mSerial);
mSerial,
mExternalImageId);
if (!actor) {
gfxCriticalNote << static_cast<int32_t>(desc.type()) << ", "
<< static_cast<int32_t>(aForwarder->GetCompositorBackendType()) << ", "
@@ -947,11 +951,15 @@ TextureClient::InitIPDLActor(KnowsCompositor* aForwarder)
return false;
}
// Try external image id allocation.
mExternalImageId = aForwarder->GetTextureForwarder()->GetNextExternalImageId();
PTextureChild* actor = fwd->CreateTexture(
desc,
aForwarder->GetCompositorBackendType(),
GetFlags(),
mSerial);
mSerial,
mExternalImageId);
if (!actor) {
gfxCriticalNote << static_cast<int32_t>(desc.type()) << ", "
<< static_cast<int32_t>(aForwarder->GetCompositorBackendType()) << ", "