#include "ui/display/display_features.h"
#include "base/feature_list.h"
#include "build/build_config.h"
namespace display {
namespace features {
#if BUILDFLAG(IS_WIN)
BASE_FEATURE(kSkipEmptyDisplayHotplugEvent,
"SkipEmptyDisplayHotplugEvent",
base::FEATURE_ENABLED_BY_DEFAULT);
#endif
#if BUILDFLAG(IS_CHROMEOS)
BASE_FEATURE(kUseHDRTransferFunction,
"UseHDRTransferFunction",
#if defined(ARCH_CPU_ARM_FAMILY)
base::FEATURE_DISABLED_BY_DEFAULT
#else
base::FEATURE_ENABLED_BY_DEFAULT
#endif
);
BASE_FEATURE(kEnableExternalDisplayHDR10Mode,
"EnableExternalDisplayHDR10Mode",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCtmColorManagement,
"CtmColorManagement",
base::FEATURE_ENABLED_BY_DEFAULT);
#endif
BASE_FEATURE(kListAllDisplayModes,
"ListAllDisplayModes",
base::FEATURE_ENABLED_BY_DEFAULT);
bool IsListAllDisplayModesEnabled() {
return base::FeatureList::IsEnabled(kListAllDisplayModes);
}
BASE_FEATURE(kEnableEdidBasedDisplayIds,
"EnableEdidBasedDisplayIds",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsEdidBasedDisplayIdsEnabled() {
return base::FeatureList::IsEnabled(kEnableEdidBasedDisplayIds);
}
BASE_FEATURE(kOledScaleFactorEnabled,
"OledScaleFactorEnabled",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsOledScaleFactorEnabled() {
return base::FeatureList::IsEnabled(kOledScaleFactorEnabled);
}
BASE_FEATURE(kEnableHardwareMirrorMode,
"EnableHardwareMirrorMode",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsHardwareMirrorModeEnabled() {
return base::FeatureList::IsEnabled(kEnableHardwareMirrorMode);
}
BASE_FEATURE(kRequireHdcpKeyProvisioning,
"RequireHdcpKeyProvisioning",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsHdcpKeyProvisioningRequired() {
return base::FeatureList::IsEnabled(kRequireHdcpKeyProvisioning);
}
BASE_FEATURE(kPanelSelfRefresh2,
"PanelSelfRefresh2",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsPanelSelfRefresh2Enabled() {
return base::FeatureList::IsEnabled(kPanelSelfRefresh2);
}
BASE_FEATURE(kTiledDisplaySupport,
"TiledDisplaySupport",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsTiledDisplaySupportEnabled() {
return base::FeatureList::IsEnabled(kTiledDisplaySupport);
}
BASE_FEATURE(kExcludeDisplayInMirrorMode,
"ExcludeDisplayInMirrorMode",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsExcludeDisplayInMirrorModeEnabled() {
return base::FeatureList::IsEnabled(kExcludeDisplayInMirrorMode);
}
BASE_FEATURE(kFastDrmMasterDrop,
"FastDrmMasterDrop",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsFastDrmMasterDropEnabled() {
return base::FeatureList::IsEnabled(kFastDrmMasterDrop);
}
BASE_FEATURE(kFormFactorControlsSubpixelRendering,
"FormFactorControlsSubpixelRendering",
base::FEATURE_ENABLED_BY_DEFAULT);
bool DoesFormFactorControlSubpixelRendering() {
return base::FeatureList::IsEnabled(kFormFactorControlsSubpixelRendering);
}
BASE_FEATURE(kOpsDisplayScaleFactor,
"OpsDisplayScaleFactor",
base::FEATURE_DISABLED_BY_DEFAULT);
bool IsOpsDisplayScaleFactorEnabled() {
return base::FeatureList::IsEnabled(kOpsDisplayScaleFactor);
}
}
}