зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1184224 - Remove gfxPrefs.h include from gfxPlatformGtk.h. r=karlt
CLOSED TREE
This commit is contained in:
Родитель
8701d0794e
Коммит
52d2fdc51b
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче