summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxPlatformMac.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /gfx/thebes/gfxPlatformMac.cpp
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/thebes/gfxPlatformMac.cpp')
-rw-r--r--gfx/thebes/gfxPlatformMac.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/gfx/thebes/gfxPlatformMac.cpp b/gfx/thebes/gfxPlatformMac.cpp
index 091b0dff28..5c99d389c8 100644
--- a/gfx/thebes/gfxPlatformMac.cpp
+++ b/gfx/thebes/gfxPlatformMac.cpp
@@ -965,27 +965,6 @@ gfxPlatformMac::CreateGlobalHardwareVsyncSource() {
#endif
}
-bool gfxPlatformMac::SupportsHDR() {
- // HDR has 3 requirements:
- // 1) high peak brightness
- // 2) high contrast ratio
- // 3) color depth > 24
- if (GetScreenDepth() <= 24) {
- return false;
- }
-
-#ifdef MOZ_WIDGET_UIKIT
- return false;
-#elif defined(EARLY_BETA_OR_EARLIER)
- // Screen is capable. Is the OS capable?
- // More-or-less supported in Catalina.
- return true;
-#else
- // Definitely supported in Big Sur.
- return nsCocoaFeatures::OnBigSurOrLater();
-#endif
-}
-
nsTArray<uint8_t> gfxPlatformMac::GetPlatformCMSOutputProfileData() {
nsTArray<uint8_t> prefProfileData = GetPrefCMSOutputProfileData();
if (!prefProfileData.IsEmpty()) {