Closed Bug 1590556 Opened 6 years ago Closed 6 years ago

Allow specifying custom resolutions/aspect ratios for the GeckoView rendering surface

Categories

(GeckoView :: General, enhancement)

Unspecified
All
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: bas.schouten, Unassigned)

Details

For performance testing we may run GeckoView on capture cards which emulate screen resolutions more typical of desktop hardware (like for example 1080p), this makes websites often render in a manner they do on desktop or in some other manner that is not typical for mobile devices.

Ideally we would be able to specify through a pref, or through some other mechanism, the ideal resolution or aspect ratio at which the container for GV is presented onto the device, so that we may have run websites run in a more typical mobile environment even if the device resolution is atypical.

Bas, which apps will you be testing? Fenix, the GeckoView Example app, and/or a custom test app?

snorp says no GV work is needed. A test app can already configure the DPI/etc override using GV's GeckoRuntimeSettings.Builder APIs like displayDpiOverride and displayDensityOverride. If you want to add support for changing the resolution in the GeckoView Example app, we use this bug for that.

https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/GeckoRuntimeSettings.Builder.html

Flags: needinfo?(bas)

Vicky is the best person to answer this.

Flags: needinfo?(bas) → needinfo?(vchin)

(In reply to Chris Peterson [:cpeterson] from comment #1)

snorp says no GV work is needed. A test app can already configure the DPI/etc override using GV's GeckoRuntimeSettings.Builder APIs like displayDpiOverride and displayDensityOverride. If you want to add support for changing the resolution in the GeckoView Example app, we use this bug for that.

Closing this bug as WORKSFORME because there is no GeckoView work needed. A test app can already configure the DPI/etc override using GV APIs.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(vchin)
Component: GeckoViewExample → General
You need to log in before you can comment on or make changes to this bug.