WebPreferencesGtk.cpp [plain text]
#include "config.h"
#include "WebPreferences.h"
#include <WebCore/NotImplemented.h>
#include <WebCore/PlatformDisplay.h>
namespace WebKit {
void WebPreferences::platformInitializeStore()
{
#if PLATFORM(WAYLAND)
if (WebCore::PlatformDisplay::sharedDisplay().type() == WebCore::PlatformDisplay::Type::Wayland) {
setAcceleratedCompositingEnabled(false);
}
#endif
#if USE(COORDINATED_GRAPHICS_THREADED)
setForceCompositingMode(true);
#endif
#if !ENABLE(OPENGL)
setAcceleratedCompositingEnabled(false);
#else
if (getenv("WEBKIT_FORCE_COMPOSITING_MODE"))
setForceCompositingMode(true);
if (getenv("WEBKIT_DISABLE_COMPOSITING_MODE"))
setAcceleratedCompositingEnabled(false);
#endif
}
void WebPreferences::platformUpdateStringValueForKey(const String&, const String&)
{
notImplemented();
}
void WebPreferences::platformUpdateBoolValueForKey(const String&, bool)
{
notImplemented();
}
void WebPreferences::platformUpdateUInt32ValueForKey(const String&, uint32_t)
{
notImplemented();
}
void WebPreferences::platformUpdateDoubleValueForKey(const String&, double)
{
notImplemented();
}
void WebPreferences::platformUpdateFloatValueForKey(const String&, float)
{
notImplemented();
}
bool WebPreferences::platformGetStringUserValueForKey(const String&, String&)
{
notImplemented();
return false;
}
bool WebPreferences::platformGetBoolUserValueForKey(const String&, bool&)
{
notImplemented();
return false;
}
bool WebPreferences::platformGetUInt32UserValueForKey(const String&, uint32_t&)
{
notImplemented();
return false;
}
bool WebPreferences::platformGetDoubleUserValueForKey(const String&, double&)
{
notImplemented();
return false;
}
}