New issue
Advanced search Search tips

Issue 872339 link

Starred by 5 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Task


Sign in to add a comment

Implement PlatformScreen for all ozone platforms

Project Member Reported by sergeyu@chromium.org, Aug 8

Issue description

https://crrev.com/c/1162354 added PlatformScreen interface in Ozone. Currently this interface is implemented only for Scenic (after https://crrev.com/c/1162426 lands). It needs to be implemented for all platforms and then OzonePlatform::CreateScreen() callers won't need to handle nullptr result.
 
Cc: msi...@igalia.com
Is this now a way to produce a list of displays in ozone? I ask because we have already had a DesktopScreenOzone, which implemented ScreenBase and is used by Wayland, for example.

We will take care about Wayland then.
Yes, I think we will want to implement PlatformScreen for Wayland. AFAICT DesktopScreenOzone doesn't implement all Screen functionality. E.g. GetDisplayNearestWindow() always returns "primary" display. That function is rather hard to implement correctly on layers above ozone.
Note that PlatformScreen is not actually used in most cases ATM. You will want to update the code that initializes screen to create ScreenOzone instead of DesktopScreenOzone (and then DesktopScreenOzone can be removed completely).
Blockedon: 875161
Blockedon: 891613
Blockedon: 891654
Blockedon: 891175
Labels: Hotlist-DesktopUIToolingRequired Hotlist-DesktopUIChecked
***UI Mass Triage***

Comment 8 by nickdi...@igalia.com, Jan 18 (4 days ago)

Cc: nickdi...@igalia.com

Sign in to add a comment