Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit faafea6e authored by Kazuki Takise's avatar Kazuki Takise
Browse files

Upscale SCM for display and windowing mode changes

Currently upscaling is generally not allowed in fullscreen, but
with connected displays, we've got a few cases where upscaling
should be enabled in fullscreen:

1. An app moves between displays. Especially after an SCM app
moves from external to phone screen, the app content can become
very small with a big letterbox.
2. An app becomes fullscreen from freeform.

As an exception, ignore-orientation-request internal displays
are explicitly excluded from this treatment because there are
already some scenarios SCM apps are not upscaled on those
displays such as orientation changes, and introducing this
treatment could make the scaling logic incnosistent and
confusing.

For now, we allow upscaling only to these two cases (besides the
existing conditions), but these heuristics will be revisited
later to enable upscaling in more cases such as desktop-first.

Flag: com.android.window.flags.enable_upscaling_size_compat_on_exiting_desktop_bugfix
Bug: 432329483
Test: SizeCompatTests#testUpscaling_boundsUpscaledWithWindowingModeChange
Change-Id: I1e64317d10f0ef1c0b6a5f3e6888e8ec9606e0ea
parent b238d2d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment