Skip to content

Commit

Permalink
Bug 1640901 - Update CompositorBridgeID when ImageHost is async in Im…
Browse files Browse the repository at this point in the history
…ageLayerComposite::SetLayerManager() r=mattwoodrow

When Tab is moved to another window, all async ImageHosts need to update CompositorBridgeID. It is used for calling ScheduleComposition().

Differential Revision: https://phabricator.services.mozilla.com/D79068
  • Loading branch information
sotaro committed Jun 14, 2020
1 parent 7f5a6de commit 615f00a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gfx/layers/composite/ImageLayerComposite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ void ImageLayerComposite::SetLayerManager(HostLayerManager* aManager) {
mManager = aManager;
if (mImageHost) {
mImageHost->SetTextureSourceProvider(mCompositor);
if (aManager && mImageHost->GetAsyncRef()) {
mImageHost->SetCompositorBridgeID(aManager->GetCompositorBridgeID());
}
}
}

Expand Down

0 comments on commit 615f00a

Please sign in to comment.