mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 1016079: Remove unused gfxQtPlatform::UseXRender method. r=bjacob
This commit is contained in:
parent
c13766a02b
commit
1acd60ec18
@ -46,17 +46,11 @@ using namespace mozilla::unicode;
|
||||
using namespace mozilla::gfx;
|
||||
|
||||
gfxFontconfigUtils *gfxQtPlatform::sFontconfigUtils = nullptr;
|
||||
#ifdef MOZ_X11
|
||||
bool gfxQtPlatform::sUseXRender = true;
|
||||
#endif
|
||||
|
||||
static gfxImageFormat sOffscreenFormat = gfxImageFormat::RGB24;
|
||||
|
||||
gfxQtPlatform::gfxQtPlatform()
|
||||
{
|
||||
#ifdef MOZ_X11
|
||||
sUseXRender = mozilla::Preferences::GetBool("gfx.xrender.enabled");
|
||||
#endif
|
||||
if (!sFontconfigUtils)
|
||||
sFontconfigUtils = gfxFontconfigUtils::GetFontconfigUtils();
|
||||
|
||||
|
@ -93,28 +93,12 @@ protected:
|
||||
static gfxFontconfigUtils *sFontconfigUtils;
|
||||
|
||||
private:
|
||||
|
||||
bool UseXRender() {
|
||||
#if defined(MOZ_X11)
|
||||
if (GetContentBackend() != mozilla::gfx::BackendType::NONE &&
|
||||
GetContentBackend() != mozilla::gfx::BackendType::CAIRO)
|
||||
return false;
|
||||
|
||||
return sUseXRender;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
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;
|
||||
#ifdef MOZ_X11
|
||||
static bool sUseXRender;
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif /* GFX_PLATFORM_QT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user