Bug 1356944 - Fix external image id allocation of WebRenderTextureHost r=nical
This commit is contained in:
@@ -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()) << ", "
|
||||
|
||||
Reference in New Issue
Block a user