Bug 593438. d3d9: Don't use an accelerated layer manager for transparent windows. r=vlad

Transparent windows require a more complicated dance to get transparency to work
correctly. For now, we'll just not accelerate them.
This commit is contained in:
Jeff Muizelaar 2010-09-03 17:11:50 -04:00
parent f800296d72
commit e711022870

View File

@ -3168,6 +3168,14 @@ nsWindow::GetLayerManager()
return nsBaseWidget::GetLayerManager();
}
/* We don't currently support using an accelerated layer manager with
* transparent windows so don't even try. I'm also not sure if we even
* want to support this case. See bug #593471 */
if (eTransparencyTransparent == mTransparencyMode) {
mUseAcceleratedRendering = PR_FALSE;
return nsBaseWidget::GetLayerManager();
}
if (topWindow->GetAcceleratedRendering() != mUseAcceleratedRendering) {
mLayerManager = NULL;
mUseAcceleratedRendering = topWindow->GetAcceleratedRendering();