Fix bogus check in OnRenderingDeviceReset. (bug 1333329 part 4, r=rhunt)
authorDavid Anderson <danderson@mozilla.com>
Tue, 24 Jan 2017 11:23:12 -0800
changeset 330901 f603c9fd66d428ac6eb40352c987f91dacdc977c
parent 330900 4da258d42deecdb7e08280a6d3119a329bfe8d24
child 330902 d7ad91f903facea2a0ff088c14d6ca4a501fb509
push id31254
push userphilringnalda@gmail.com
push dateWed, 25 Jan 2017 02:53:42 +0000
treeherdermozilla-central@6dccae211ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrhunt
bugs1333329
milestone54.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
Fix bogus check in OnRenderingDeviceReset. (bug 1333329 part 4, r=rhunt)
widget/nsBaseWidget.cpp
--- a/widget/nsBaseWidget.cpp
+++ b/widget/nsBaseWidget.cpp
@@ -344,17 +344,17 @@ nsBaseWidget::OnRenderingDeviceReset(uin
   // If the existing compositor does not use acceleration, and this widget
   // should not be accelerated, then there's no point in resetting.
   //
   // Note that if this widget should be accelerated, but instead has a basic
   // compositor, we still reset just in case we're now in the position to get
   // accelerated layers again.
   RefPtr<ClientLayerManager> clm = mLayerManager->AsClientLayerManager();
   if (!ComputeShouldAccelerate() &&
-      clm->GetTextureFactoryIdentifier().mParentBackend != LayersBackend::LAYERS_BASIC)
+      clm->GetCompositorBackendType() == LayersBackend::LAYERS_BASIC)
   {
     return;
   }
 
   // Recreate the compositor.
   TextureFactoryIdentifier identifier;
   if (!mCompositorSession->Reset(backendHints, aSeqNo, &identifier)) {
     // No action was taken, so we don't have to do anything.