Skip to content

Commit

Permalink
Bug 1817281 - Handle wrong deallocator type in TextureHost. r=gfx-rev…
Browse files Browse the repository at this point in the history
…iewers,bradwerth

Differential Revision: https://phabricator.services.mozilla.com/D170111
  • Loading branch information
choller committed Feb 16, 2023
1 parent 0d5699d commit d8a7623
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gfx/layers/composite/TextureHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,11 @@ already_AddRefed<TextureHost> TextureHost::Create(
case SurfaceDescriptor::TSurfaceDescriptorRecorded: {
const SurfaceDescriptorRecorded& desc =
aDesc.get_SurfaceDescriptorRecorded();
CompositorBridgeParentBase* actor =
aDeallocator ? aDeallocator->AsCompositorBridgeParentBase() : nullptr;
UniquePtr<SurfaceDescriptor> realDesc =
aDeallocator
? aDeallocator->AsCompositorBridgeParentBase()
->LookupSurfaceDescriptorForClientTexture(desc.textureId())
actor
? actor->LookupSurfaceDescriptorForClientTexture(desc.textureId())
: nullptr;
if (!realDesc) {
gfxCriticalNote << "Failed to get descriptor for recorded texture.";
Expand Down

0 comments on commit d8a7623

Please sign in to comment.