Bug 1376026 - assume DWrite is available on Windows 7 even without the platform update. r=jrmuizel
authorLee Salzman <lsalzman@mozilla.com>
Fri, 30 Jun 2017 13:46:21 -0400
changeset 607726 e738e018fe57aa713c5b977c985b8809188ef591
parent 607725 9b778f1f3c2d8ac62c12c7b3f510962e940256bf
child 607727 d5b7263f383d0d822b683138c914926b01c7f5cd
push id68095
push userbmo:rbarker@mozilla.com
push dateWed, 12 Jul 2017 20:01:47 +0000
reviewersjrmuizel
bugs1376026
milestone56.0a1
Bug 1376026 - assume DWrite is available on Windows 7 even without the platform update. r=jrmuizel
gfx/thebes/gfxWindowsPlatform.cpp
--- a/gfx/thebes/gfxWindowsPlatform.cpp
+++ b/gfx/thebes/gfxWindowsPlatform.cpp
@@ -383,22 +383,16 @@ gfxWindowsPlatform::CanUseHardwareVideoD
     return false;
   }
   return !dm->IsWARP() && gfxPlatform::CanUseHardwareVideoDecoding();
 }
 
 bool
 gfxWindowsPlatform::InitDWriteSupport()
 {
-  // DWrite is only supported on Windows 7 with the platform update and higher.
-  // We check this by seeing if D2D1 support is available.
-  if (!Factory::SupportsD2D1()) {
-    return false;
-  }
-
   mozilla::ScopedGfxFeatureReporter reporter("DWrite");
   decltype(DWriteCreateFactory)* createDWriteFactory = (decltype(DWriteCreateFactory)*)
       GetProcAddress(LoadLibraryW(L"dwrite.dll"), "DWriteCreateFactory");
   if (!createDWriteFactory) {
     return false;
   }
 
   // I need a direct pointer to be able to cast to IUnknown**, I also need to