Bug 1156742 Part 21: Use GetDirect3D11Device instead of DrawTargetD2D::GetDWriteFactory to determine if DWrite fonts should be used. r=Bas

This method will allow for acceleration being disabled through prefs and blacklisting.
This commit is contained in:
Bob Owen 2015-12-21 20:33:14 +00:00
parent eee890084b
commit 7b797524e1

View File

@ -557,7 +557,7 @@ Factory::CreateScaledFontForTrueTypeData(uint8_t *aData, uint32_t aSize,
RefPtr<ScaledFontBase> scaledFont;
#ifdef WIN32
if (DrawTargetD2D::GetDWriteFactory()) {
if (GetDirect3D11Device()) {
scaledFont = new ScaledFontDWrite(aData, aSize, aFaceIndex, aGlyphSize);
} else {
scaledFont = new ScaledFontWin(aData, aSize, aFaceIndex, aGlyphSize);