Closed Bug 1592933 Opened 5 years ago Closed 5 years ago

[Wayland] Manage scale factor at nsWindow level only

Categories

(Core :: Widget: Gtk, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Let's factor our scale factor management from mozcontainer to nsWindow and use GdkScaleFactor() for it. Also potentially cache the scale factor.

Remove moz_container_get_scale() and use only nsWindow::GdkScaleFactor() to get scale factor for wl_surface and wl_egl_window.
Always set the scale factor when wl_surface / wl_egl_window is queued for rendering.

Pushed by ncsoregi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8e5e0943edd0
[Wayland] Get scale factor from nsWindow::GdkScaleFactor() and set it when wl_surface/egl_window is used for rendering, r=jhorak
https://hg.mozilla.org/integration/autoland/rev/f389488df7cc
[Wayland] Cache scale factor for toplevel windows, r=jhorak
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Regressions: 1612377
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: