blob: d0137b953d9f886ad9d8b015e4eb3c70d0e7238d [file] [log] [blame]
// Copyright 2019 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.
#ifndef UI_DISPLAY_DISPLAY_FEATURES_H_
#define UI_DISPLAY_DISPLAY_FEATURES_H_
#include "base/feature_list.h"
#include "build/chromeos_buildflags.h"
#include "ui/display/display_export.h"
namespace display {
namespace features {
#if BUILDFLAG(IS_CHROMEOS_ASH)
DISPLAY_EXPORT extern const base::Feature kRoundedDisplay;
DISPLAY_EXPORT bool IsRoundedDisplayEnabled();
DISPLAY_EXPORT extern const base::Feature kUseHDRTransferFunction;
#endif
DISPLAY_EXPORT extern const base::Feature kListAllDisplayModes;
DISPLAY_EXPORT bool IsListAllDisplayModesEnabled();
DISPLAY_EXPORT extern const base::Feature kEnableHardwareMirrorMode;
DISPLAY_EXPORT bool IsHardwareMirrorModeEnabled();
DISPLAY_EXPORT extern const base::Feature kRequireHdcpKeyProvisioning;
DISPLAY_EXPORT bool IsHdcpKeyProvisioningRequired();
#if BUILDFLAG(IS_MAC)
// If enabled, vsync of 120 is forced to 60.
DISPLAY_EXPORT extern const base::Feature kForce60Hz;
#endif
} // namespace features
} // namespace display
#endif // UI_DISPLAY_DISPLAY_FEATURES_H_