Bug 1155228 - Only use basic OMTC for popups when using WARP. r=jrmuizel, a=sledru
authorBas Schouten <bschouten@mozilla.com>
Fri, 17 Apr 2015 10:32:32 -0400
changeset 267133 a4e7361a2b5dc6053896b5b2f21723d4a09c55da
parent 267132 5eb9e61c69118ed29724e5bec7f1d86227f404ab
child 267134 f1b9d7872e1910cf1da9266bf39853878e0ea473
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, sledru
bugs1155228
milestone39.0a2
Bug 1155228 - Only use basic OMTC for popups when using WARP. r=jrmuizel, a=sledru
widget/windows/nsWindow.cpp
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -6576,17 +6576,17 @@ nsWindow::GetPreferredCompositorBackends
   LayerManagerPrefs prefs;
   GetLayerManagerPrefs(&prefs);
 
   // 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 (!(prefs.mDisableAcceleration ||
         mTransparencyMode == eTransparencyTransparent ||
-        IsPopup())) {
+        (IsPopup() && gfxWindowsPlatform::GetPlatform()->IsWARP()))) {
     // 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) {
       aHints.AppendElement(LayersBackend::LAYERS_OPENGL);
     }
 
     if (!prefs.mPreferD3D9) {