Bug 753784; allow access to the max texture size from FrameLayerBuilder. r=roc

This commit is contained in:
Nicholas Cameron
2012-05-22 19:15:16 -04:00
parent 4ffe1932d5
commit 189d6e2368
20 changed files with 64 additions and 14 deletions

View File

@@ -872,8 +872,9 @@ void nsBaseWidget::CreateCompositor()
AsyncChannel *parentChannel = mCompositorParent->GetIPCChannel();
AsyncChannel::Side childSide = mozilla::ipc::AsyncChannel::Child;
mCompositorChild->Open(parentChannel, childMessageLoop, childSide);
PRInt32 maxTextureSize;
PLayersChild* shadowManager =
mCompositorChild->SendPLayersConstructor(LayerManager::LAYERS_OPENGL);
mCompositorChild->SendPLayersConstructor(LayerManager::LAYERS_OPENGL, &maxTextureSize);
if (shadowManager) {
ShadowLayerForwarder* lf = lm->AsShadowForwarder();
@@ -884,6 +885,7 @@ void nsBaseWidget::CreateCompositor()
}
lf->SetShadowManager(shadowManager);
lf->SetParentBackendType(LayerManager::LAYERS_OPENGL);
lf->SetMaxTextureSize(maxTextureSize);
mLayerManager = lm;
} else {