зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1376026 - assume DWrite is available on Windows 7 even without the platform update. r=jrmuizel
This commit is contained in:
Родитель
eb904f98f1
Коммит
901f5815e8
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче