@@ -2029,8 +2029,7 @@ TabChild::RecvSetAppType(const nsString& aAppType)
20292029
20302030PRenderFrameChild*
20312031TabChild::AllocPRenderFrame (ScrollingBehavior* aScrolling,
2032- LayersBackend* aBackend,
2033- int32_t * aMaxTextureSize,
2032+ TextureFactoryIdentifier* aTextureFactoryIdentifier,
20342033 uint64_t * aLayersId)
20352034{
20362035 return new RenderFrameChild ();
@@ -2089,12 +2088,11 @@ TabChild::InitRenderingState()
20892088{
20902089 static_cast <PuppetWidget*>(mWidget .get ())->InitIMEState ();
20912090
2092- LayersBackend be;
20932091 uint64_t id;
2094- int32_t maxTextureSize ;
2092+ TextureFactoryIdentifier textureFactoryIdentifier ;
20952093 RenderFrameChild* remoteFrame =
20962094 static_cast <RenderFrameChild*>(SendPRenderFrameConstructor (
2097- &mScrolling , &be, &maxTextureSize , &id));
2095+ &mScrolling , &textureFactoryIdentifier , &id));
20982096 if (!remoteFrame) {
20992097 NS_WARNING (" failed to construct RenderFrame" );
21002098 return false ;
@@ -2104,15 +2102,14 @@ TabChild::InitRenderingState()
21042102 if (id != 0 ) {
21052103 // Pushing layers transactions directly to a separate
21062104 // compositor context.
2107- PCompositorChild* compositorChild = CompositorChild::Get ();
2105+ PCompositorChild* compositorChild = CompositorChild::Get ();
21082106 if (!compositorChild) {
21092107 NS_WARNING (" failed to get CompositorChild instance" );
21102108 return false ;
21112109 }
21122110 shadowManager =
2113- compositorChild->SendPLayersConstructor (be, id,
2114- &be,
2115- &maxTextureSize);
2111+ compositorChild->SendPLayersConstructor (textureFactoryIdentifier.mParentBackend ,
2112+ id, &textureFactoryIdentifier);
21162113 } else {
21172114 // Pushing transactions to the parent content.
21182115 shadowManager = remoteFrame->SendPLayersConstructor ();
@@ -2126,11 +2123,11 @@ TabChild::InitRenderingState()
21262123 }
21272124
21282125 ShadowLayerForwarder* lf =
2129- mWidget ->GetLayerManager (shadowManager, be)->AsShadowForwarder ();
2126+ mWidget ->GetLayerManager (shadowManager, textureFactoryIdentifier.mParentBackend )
2127+ ->AsShadowForwarder ();
21302128 NS_ABORT_IF_FALSE (lf && lf->HasShadowManager (),
21312129 "PuppetWidget should have shadow manager");
2132- lf->SetParentBackendType (be);
2133- lf->SetMaxTextureSize (maxTextureSize);
2130+ lf->IdentifyTextureHost (textureFactoryIdentifier);
21342131
21352132 mRemoteFrame = remoteFrame;
21362133
0 commit comments