зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1118601 - trim out unused pref fonts list from platform objects. r=m_kato
This commit is contained in:
Родитель
ad29a906d7
Коммит
49d793eefc
|
@ -93,8 +93,6 @@ public:
|
||||||
const uint8_t* aFontData,
|
const uint8_t* aFontData,
|
||||||
uint32_t aLength);
|
uint32_t aLength);
|
||||||
|
|
||||||
void ClearPrefFonts() { mPrefFonts.Clear(); }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class gfxPlatformMac;
|
friend class gfxPlatformMac;
|
||||||
|
|
||||||
|
|
|
@ -72,8 +72,6 @@ public:
|
||||||
virtual bool IsFontFormatSupported(nsIURI *aFontURI,
|
virtual bool IsFontFormatSupported(nsIURI *aFontURI,
|
||||||
uint32_t aFormatFlags) MOZ_OVERRIDE;
|
uint32_t aFormatFlags) MOZ_OVERRIDE;
|
||||||
|
|
||||||
virtual void ClearPrefFonts() { mPrefFonts.Clear(); }
|
|
||||||
|
|
||||||
static int32_t GetDPI();
|
static int32_t GetDPI();
|
||||||
|
|
||||||
virtual gfxImageFormat GetOffscreenFormat() MOZ_OVERRIDE;
|
virtual gfxImageFormat GetOffscreenFormat() MOZ_OVERRIDE;
|
||||||
|
@ -90,9 +88,6 @@ protected:
|
||||||
private:
|
private:
|
||||||
virtual void GetPlatformCMSOutputProfile(void *&mem, size_t &size) MOZ_OVERRIDE;
|
virtual void GetPlatformCMSOutputProfile(void *&mem, size_t &size) MOZ_OVERRIDE;
|
||||||
|
|
||||||
// TODO: unify this with mPrefFonts (NB: holds families, not fonts) in gfxPlatformFontList
|
|
||||||
nsDataHashtable<nsCStringHashKey, nsTArray<nsRefPtr<gfxFontEntry> > > mPrefFonts;
|
|
||||||
|
|
||||||
int mScreenDepth;
|
int mScreenDepth;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,6 @@ NS_IMPL_ISUPPORTS(GPUAdapterReporter, nsIMemoryReporter)
|
||||||
|
|
||||||
gfxWindowsPlatform::gfxWindowsPlatform()
|
gfxWindowsPlatform::gfxWindowsPlatform()
|
||||||
: mD3D11DeviceInitialized(false)
|
: mD3D11DeviceInitialized(false)
|
||||||
, mPrefFonts(32)
|
|
||||||
{
|
{
|
||||||
mUseClearTypeForDownloadableFonts = UNINITIALIZED_VALUE;
|
mUseClearTypeForDownloadableFonts = UNINITIALIZED_VALUE;
|
||||||
mUseClearTypeAlways = UNINITIALIZED_VALUE;
|
mUseClearTypeAlways = UNINITIALIZED_VALUE;
|
||||||
|
@ -1098,18 +1097,6 @@ gfxWindowsPlatform::GetPlatformCMSOutputProfile(void* &mem, size_t &mem_size)
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
gfxWindowsPlatform::GetPrefFontEntries(const nsCString& aKey, nsTArray<nsRefPtr<gfxFontEntry> > *array)
|
|
||||||
{
|
|
||||||
return mPrefFonts.Get(aKey, array);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gfxWindowsPlatform::SetPrefFontEntries(const nsCString& aKey, nsTArray<nsRefPtr<gfxFontEntry> >& array)
|
|
||||||
{
|
|
||||||
mPrefFonts.Put(aKey, array);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
gfxWindowsPlatform::UseClearTypeForDownloadableFonts()
|
gfxWindowsPlatform::UseClearTypeForDownloadableFonts()
|
||||||
{
|
{
|
||||||
|
|
|
@ -215,11 +215,6 @@ public:
|
||||||
gfxFontFamily *FindFontFamily(const nsAString& aName);
|
gfxFontFamily *FindFontFamily(const nsAString& aName);
|
||||||
gfxFontEntry *FindFontEntry(const nsAString& aName, const gfxFontStyle& aFontStyle);
|
gfxFontEntry *FindFontEntry(const nsAString& aName, const gfxFontStyle& aFontStyle);
|
||||||
|
|
||||||
bool GetPrefFontEntries(const nsCString& aLangGroup, nsTArray<nsRefPtr<gfxFontEntry> > *array);
|
|
||||||
void SetPrefFontEntries(const nsCString& aLangGroup, nsTArray<nsRefPtr<gfxFontEntry> >& array);
|
|
||||||
|
|
||||||
void ClearPrefFonts() { mPrefFonts.Clear(); }
|
|
||||||
|
|
||||||
// ClearType is not always enabled even when available (e.g. Windows XP)
|
// ClearType is not always enabled even when available (e.g. Windows XP)
|
||||||
// if either of these prefs are enabled and apply, use ClearType rendering
|
// if either of these prefs are enabled and apply, use ClearType rendering
|
||||||
bool UseClearTypeForDownloadableFonts();
|
bool UseClearTypeForDownloadableFonts();
|
||||||
|
@ -290,9 +285,6 @@ private:
|
||||||
mozilla::RefPtr<mozilla::layers::ReadbackManagerD3D11> mD3D11ReadbackManager;
|
mozilla::RefPtr<mozilla::layers::ReadbackManagerD3D11> mD3D11ReadbackManager;
|
||||||
|
|
||||||
virtual void GetPlatformCMSOutputProfile(void* &mem, size_t &size);
|
virtual void GetPlatformCMSOutputProfile(void* &mem, size_t &size);
|
||||||
|
|
||||||
// TODO: unify this with mPrefFonts (NB: holds families, not fonts) in gfxPlatformFontList
|
|
||||||
nsDataHashtable<nsCStringHashKey, nsTArray<nsRefPtr<gfxFontEntry> > > mPrefFonts;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bool DoesD3D11TextureSharingWork(ID3D11Device *device);
|
bool DoesD3D11TextureSharingWork(ID3D11Device *device);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче