Bug 1376026 - assume DWrite is available on Windows 7 even without the platform update. r=jrmuizel

This commit is contained in:
Lee Salzman 2017-06-30 13:46:21 -04:00
Родитель eb904f98f1
Коммит 901f5815e8
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -388,12 +388,6 @@ gfxWindowsPlatform::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");