summaryrefslogtreecommitdiffstats
path: root/widget/android/ScreenHelperAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widget/android/ScreenHelperAndroid.cpp')
-rw-r--r--widget/android/ScreenHelperAndroid.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/widget/android/ScreenHelperAndroid.cpp b/widget/android/ScreenHelperAndroid.cpp
index 33c91fe6e0..141b38e01b 100644
--- a/widget/android/ScreenHelperAndroid.cpp
+++ b/widget/android/ScreenHelperAndroid.cpp
@@ -38,14 +38,15 @@ static already_AddRefed<Screen> MakePrimaryScreen() {
uint32_t depth = java::GeckoAppShell::GetScreenDepth();
float density = java::GeckoAppShell::GetDensity();
float dpi = java::GeckoAppShell::GetDpi();
+ bool isHDR = false; // Bug 1884960: report this accurately
auto orientation =
hal::ScreenOrientation(java::GeckoAppShell::GetScreenOrientation());
uint16_t angle = java::GeckoAppShell::GetScreenAngle();
float refreshRate = java::GeckoAppShell::GetScreenRefreshRate();
- return MakeAndAddRef<Screen>(bounds, bounds, depth, depth, refreshRate,
- DesktopToLayoutDeviceScale(density),
- CSSToLayoutDeviceScale(1.0f), dpi,
- Screen::IsPseudoDisplay::No, orientation, angle);
+ return MakeAndAddRef<Screen>(
+ bounds, bounds, depth, depth, refreshRate,
+ DesktopToLayoutDeviceScale(density), CSSToLayoutDeviceScale(1.0f), dpi,
+ Screen::IsPseudoDisplay::No, Screen::IsHDR(isHDR), orientation, angle);
}
ScreenHelperAndroid::ScreenHelperAndroid() {