Fix D3D11VideoCrashGuard missing a switch case in ContentParent. (bug 1263725, r=mattwoodrow)
authorDavid Anderson <danderson@mozilla.com>
Thu, 14 Apr 2016 00:15:31 -0400
changeset 331146 30aa9ea0ad0c77ae3f8ce0868cf1b21829b0a530
parent 331145 b33bd4e99069c269b96eb5532661830356d1dcae
child 331147 a5b52c5e3c9619a3879e98d9e3cc54bac0ed88d9
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1263725
milestone48.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 D3D11VideoCrashGuard missing a switch case in ContentParent. (bug 1263725, r=mattwoodrow)
dom/ipc/ContentParent.cpp
--- a/dom/ipc/ContentParent.cpp
+++ b/dom/ipc/ContentParent.cpp
@@ -5652,24 +5652,27 @@ ContentParent::RecvBeginDriverCrashGuard
     guard = MakeUnique<gfx::D3D11LayersCrashGuard>(this);
     break;
   case gfx::CrashGuardType::D3D9Video:
     guard = MakeUnique<gfx::D3D9VideoCrashGuard>(this);
     break;
   case gfx::CrashGuardType::GLContext:
     guard = MakeUnique<gfx::GLContextCrashGuard>(this);
     break;
+  case gfx::CrashGuardType::D3D11Video:
+    guard = MakeUnique<gfx::D3D11VideoCrashGuard>(this);
+    break;
   default:
     MOZ_ASSERT_UNREACHABLE("unknown crash guard type");
     return false;
   }
 
   if (guard->Crashed()) {
-  *aOutCrashed = true;
-  return true;
+    *aOutCrashed = true;
+    return true;
   }
 
   *aOutCrashed = false;
   mDriverCrashGuard = Move(guard);
   return true;
 }
 
 bool