Closed Bug 2089463 Opened 14 days ago Closed 13 days ago

[HDR] Window is blurred on fractional scale

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

(Blocks 3 open bugs)

Details

Attachments

(1 external file)

[Wayland] Window is blurred right after startup, fixed when is hidden/shown.

133% fractional scale, resizing window after start makes the content blur.

It's more visible in HDR mode.

Looks like caused by stable rounding used for Mutter. While we calculate window size with CSD offset the rendered wl_subsurface is placed at (0,0) as we use hidden root surface located at CSD offset for HDR rendering.

So the window size is calculated for CSD offset while rendering itself is done with (0,0) origin which breaks Mutter stable rounding based on subsurface position.

Flags: needinfo?(stransky)
Flags: needinfo?(stransky)
Summary: [Wayland] Window is blurred right after startup, fixed when is hidden/shown → [HDR] Window is blurred on some size
Flags: needinfo?(stransky)
Flags: needinfo?(stransky)
Summary: [HDR] Window is blurred on some size → [HDR] Window is blurred on fractional scale
  • Factor out gUseStableRounding to nsWindowWayland and move static pref init there
  • Use WaylandSurface and subsurface position to calc stable rounding coordinates
  • Add a correction for HDR root surface
Assignee: nobody → stransky
Status: NEW → ASSIGNED
Pushed by stransky@redhat.com: https://github.com/mozilla-firefox/firefox/commit/0484d5cecd6f https://hg.mozilla.org/integration/autoland/rev/c9c42910c1ee [HDR] Use stable rounding and correct subsurface position in HDR mode r=emilio,gtk-reviewers
Status: ASSIGNED → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: