зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 581652145f1b (bug 1376026)
This commit is contained in:
Родитель
6969a898fd
Коммит
cd6ff28835
|
@ -355,7 +355,7 @@ gfxWindowsPlatform::InitAcceleration()
|
|||
UpdateRenderMode();
|
||||
|
||||
// If we have Skia and we didn't init dwrite already, do it now.
|
||||
if (!DWriteEnabled() && GetDefaultContentBackend() == BackendType::SKIA) {
|
||||
if (!DWriteAvailable() && GetDefaultContentBackend() == BackendType::SKIA) {
|
||||
InitDWriteSupport();
|
||||
}
|
||||
|
||||
|
@ -491,7 +491,7 @@ gfxWindowsPlatform::CreatePlatformFontList()
|
|||
|
||||
// bug 630201 - older pre-RTM versions of Direct2D/DirectWrite cause odd
|
||||
// crashers so blacklist them altogether
|
||||
if (IsNotWin7PreRTM() && DWriteEnabled()) {
|
||||
if (IsNotWin7PreRTM() && DWriteAvailable()) {
|
||||
pfl = new gfxDWriteFontList();
|
||||
if (NS_SUCCEEDED(pfl->InitFontList())) {
|
||||
return pfl;
|
||||
|
@ -1103,7 +1103,7 @@ gfxWindowsPlatform::FontsPrefsChanged(const char *aPref)
|
|||
void
|
||||
gfxWindowsPlatform::SetupClearTypeParams()
|
||||
{
|
||||
if (DWriteEnabled()) {
|
||||
if (DWriteAvailable()) {
|
||||
// any missing prefs will default to invalid (-1) and be ignored;
|
||||
// out-of-range values will also be ignored
|
||||
FLOAT gamma = -1.0;
|
||||
|
@ -1526,7 +1526,7 @@ gfxWindowsPlatform::InitializeD2D()
|
|||
}
|
||||
|
||||
// Using Direct2D depends on DWrite support.
|
||||
if (!DWriteEnabled() && !InitDWriteSupport()) {
|
||||
if (!DWriteAvailable() && !InitDWriteSupport()) {
|
||||
d2d1.SetFailed(FeatureStatus::Failed, "Failed to initialize DirectWrite support",
|
||||
NS_LITERAL_CSTRING("FEATURE_FAILURE_D2D_DWRITE"));
|
||||
return;
|
||||
|
|
|
@ -192,7 +192,7 @@ public:
|
|||
|
||||
void SetupClearTypeParams();
|
||||
|
||||
inline bool DWriteEnabled() const { return !!mozilla::gfx::Factory::GetDWriteFactory(); }
|
||||
inline bool DWriteAvailable() const { return !!mozilla::gfx::Factory::GetDWriteFactory(); }
|
||||
inline DWRITE_MEASURING_MODE DWriteMeasuringMode() { return mMeasuringMode; }
|
||||
|
||||
IDWriteRenderingParams *GetRenderingParams(TextRenderingMode aRenderMode)
|
||||
|
|
Загрузка…
Ссылка в новой задаче