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 293304 30aa9ea0ad0c77ae3f8ce0868cf1b21829b0a530
parent 293303 b33bd4e99069c269b96eb5532661830356d1dcae
child 293305 a5b52c5e3c9619a3879e98d9e3cc54bac0ed88d9
push id18749
push usercbook@mozilla.com
push dateFri, 15 Apr 2016 12:01:19 +0000
treeherderfx-team@8f7045b63b07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1263725
milestone48.0a1
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