Bug 1016079: Remove unused gfxQtPlatform::UseXRender method. r=bjacob

This commit is contained in:
Milan Sreckovic 2014-05-26 16:17:23 -04:00
parent c13766a02b
commit 1acd60ec18
2 changed files with 0 additions and 22 deletions

View File

@ -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();

View File

@ -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 */