Bug 1184224 - Remove gfxPrefs.h include from gfxPlatformGtk.h. r=karlt

CLOSED TREE
This commit is contained in:
Andrew Comminos 2015-07-15 11:38:00 -04:00
Родитель 8701d0794e
Коммит 52d2fdc51b
2 изменённых файлов: 14 добавлений и 10 удалений

Просмотреть файл

@ -19,6 +19,7 @@
#include "gfxUserFontSet.h"
#include "gfxUtils.h"
#include "gfxFT2FontBase.h"
#include "gfxPrefs.h"
#include "mozilla/gfx/2D.h"
@ -335,6 +336,18 @@ gfxPlatformGtk::GetDPIScale()
return (dpi > 96) ? round(dpi/96.0) : 1.0;
}
bool
gfxPlatformGtk::UseImageOffscreenSurfaces()
{
// We want to turn on image offscreen surfaces ONLY for GTK3 builds since
// GTK2 theme rendering still requires xlib surfaces.
#if (MOZ_WIDGET_GTK == 3)
return gfxPrefs::UseImageOffscreenSurfaces();
#else
return false;
#endif
}
gfxImageFormat
gfxPlatformGtk::GetOffscreenFormat()
{

Просмотреть файл

@ -7,7 +7,6 @@
#define GFX_PLATFORM_GTK_H
#include "gfxPlatform.h"
#include "gfxPrefs.h"
#include "nsAutoRef.h"
#include "nsTArray.h"
@ -117,15 +116,7 @@ public:
static bool UseFcFontList() { return sUseFcFontList; }
bool UseImageOffscreenSurfaces() {
// We want to turn on image offscreen surfaces ONLY for GTK3 builds
// since GTK2 theme rendering still requires xlib surfaces per se.
#if (MOZ_WIDGET_GTK == 3)
return gfxPrefs::UseImageOffscreenSurfaces();
#else
return false;
#endif
}
bool UseImageOffscreenSurfaces();
virtual gfxImageFormat GetOffscreenFormat() override;