Bug 1093696: Call UpdateRenderMode before drawing a frame with OMTC. r=jrmuizel
authorBas Schouten <bschouten@mozilla.com>
Tue, 04 Nov 2014 22:00:09 +0100
changeset 213956 69bcf4fef10328df08319d78659888777e820066
parent 213955 650e884887f5003a0596ed950a6d9784a54febb7
child 213957 a1823d3c7365dda8735b99feff27143306c83f63
child 214011 7a9f3b3b30068a6bc78ce1d25dc14af2a79ba90c
push id27768
push userkwierso@gmail.com
push dateWed, 05 Nov 2014 02:19:03 +0000
treeherdermozilla-central@a1823d3c7365 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1093696
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1093696: Call UpdateRenderMode before drawing a frame with OMTC. r=jrmuizel
widget/windows/nsWindowGfx.cpp
--- a/widget/windows/nsWindowGfx.cpp
+++ b/widget/windows/nsWindowGfx.cpp
@@ -536,16 +536,17 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t
             Invalidate();
           } else {
             result = listener->PaintWindow(this, region);
           }
         }
         break;
 #endif
       case LayersBackend::LAYERS_CLIENT:
+        gfxWindowsPlatform::GetPlatform()->UpdateRenderMode();
         result = listener->PaintWindow(this, region);
         break;
       default:
         NS_ERROR("Unknown layers backend used!");
         break;
     }
   }