mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
Bug 1150376: Do not try to use D3D11 for popup windows. r=jrmuizel
This commit is contained in:
parent
1e6cdad33c
commit
b1178313ff
@ -6553,6 +6553,12 @@ nsWindow::ClearCompositor(nsWindow* aWindow)
|
|||||||
aWindow->DestroyLayerManager();
|
aWindow->DestroyLayerManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
nsWindow::IsPopup()
|
||||||
|
{
|
||||||
|
return mWindowType == eWindowType_popup;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
nsWindow::ShouldUseOffMainThreadCompositing()
|
nsWindow::ShouldUseOffMainThreadCompositing()
|
||||||
{
|
{
|
||||||
@ -6576,7 +6582,11 @@ nsWindow::GetPreferredCompositorBackends(nsTArray<LayersBackend>& aHints)
|
|||||||
// transparent windows so don't even try. I'm also not sure if we even
|
// transparent windows so don't even try. I'm also not sure if we even
|
||||||
// want to support this case. See bug 593471
|
// want to support this case. See bug 593471
|
||||||
if (!(prefs.mDisableAcceleration ||
|
if (!(prefs.mDisableAcceleration ||
|
||||||
mTransparencyMode == eTransparencyTransparent)) {
|
mTransparencyMode == eTransparencyTransparent ||
|
||||||
|
IsPopup())) {
|
||||||
|
// See bug 1150376, D3D11 composition can cause issues on some devices
|
||||||
|
// on windows 7 where presentation fails randomly for windows with drop
|
||||||
|
// shadows.
|
||||||
if (prefs.mPreferOpenGL) {
|
if (prefs.mPreferOpenGL) {
|
||||||
aHints.AppendElement(LayersBackend::LAYERS_OPENGL);
|
aHints.AppendElement(LayersBackend::LAYERS_OPENGL);
|
||||||
}
|
}
|
||||||
|
@ -280,6 +280,7 @@ public:
|
|||||||
|
|
||||||
virtual void GetPreferredCompositorBackends(nsTArray<mozilla::layers::LayersBackend>& aHints);
|
virtual void GetPreferredCompositorBackends(nsTArray<mozilla::layers::LayersBackend>& aHints);
|
||||||
|
|
||||||
|
bool IsPopup();
|
||||||
virtual bool ShouldUseOffMainThreadCompositing();
|
virtual bool ShouldUseOffMainThreadCompositing();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user