blob: 5ecac38330d667e4a0e4f3d7f709084ed6df6021 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/common/features.h"
#include "build/chromeos_buildflags.h"
namespace ui {
const base::Feature kWaylandOverlayDelegation{"WaylandOverlayDelegation",
base::FEATURE_ENABLED_BY_DEFAULT};
// This feature flag enables a mode where the wayland client would submit
// buffers at a scale of 1 and the server applies the respective scale transform
// to properly composite the buffers. This mode is used to support fractional
// scale factor.
const base::Feature kWaylandSurfaceSubmissionInPixelCoordinates{
"WaylandSurfaceSubmissionInPixelCoordinates",
#if BUILDFLAG(IS_CHROMEOS_LACROS)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
// This debug/dev flag pretty-prints DRM modeset configuration logs for ease
// of reading. For more information, see: http://b/233006802
const base::Feature kPrettyPrintDrmModesetConfigLogs{
"PrettyPrintDrmModesetConfigLogs", base::FEATURE_DISABLED_BY_DEFAULT};
bool IsWaylandSurfaceSubmissionInPixelCoordinatesEnabled() {
return base::FeatureList::IsEnabled(
kWaylandSurfaceSubmissionInPixelCoordinates);
}
bool IsWaylandOverlayDelegationEnabled() {
return base::FeatureList::IsEnabled(kWaylandOverlayDelegation);
}
bool IsPrettyPrintDrmModesetConfigLogsEnabled() {
return base::FeatureList::IsEnabled(kPrettyPrintDrmModesetConfigLogs);
}
} // namespace ui