[wayland] Add zaura_output_metrics_manager global [chromium/src : main]

1 view
Skip to first unread message

Thomas Lukaszewicz (Gerrit)

unread,
Feb 24, 2023, 6:36:41 PM2/24/23
to Mitsuru Oshima, crostin...@chromium.org, ozone-...@chromium.org, yhanada+...@chromium.org

Attention is currently required from: Mitsuru Oshima.

Thomas Lukaszewicz would like Mitsuru Oshima to review this change.

View Change

[wayland] Add zaura_output_metrics_manager global

This CL adds a new global interface to the aura-shell extension.

This extension is responsible for sending a complete set of metrics
needed to accurately represent WaylandOutput client-side.

On the client the necessary metrics are captured in the
WaylandOutput::Metrics struct. The events defined under the
zaura_output_metrics_manager global capture all the information
necessary to populate this WaylandOutput::Metrics struct.

These output metrics are stored in an output_id => Metrics map
client side.

Follow up CLs will integrate this into WaylandOutput such that
it pulls from these stored output metrics in situations where
it has not yet received all necessary metrics from the server
via its various output extensions (xdg_output, zaura_output).

This CL also adds the missing |name| to WaylandOutput::Metrics.

Bug: 1408304
Change-Id: Ida237018e644695229a3f70f7d17f3d911cd04df
---
M components/exo/wayland/clients/client_helper.cc
M components/exo/wayland/clients/client_helper.h
M components/exo/wayland/clients/test/client_version_test.cc
M components/exo/wayland/protocol/aura-shell.xml
M components/exo/wayland/server.cc
M components/exo/wayland/wayland_display_observer.cc
M components/exo/wayland/wl_output.cc
M components/exo/wayland/zaura_shell.cc
M components/exo/wayland/zaura_shell.h
M ui/ozone/platform/wayland/BUILD.gn
M ui/ozone/platform/wayland/common/wayland_object.cc
M ui/ozone/platform/wayland/common/wayland_object.h
M ui/ozone/platform/wayland/host/wayland_connection.cc
M ui/ozone/platform/wayland/host/wayland_connection.h
M ui/ozone/platform/wayland/host/wayland_output.h
M ui/ozone/platform/wayland/host/wayland_output_manager.cc
M ui/ozone/platform/wayland/host/wayland_output_manager.h
A ui/ozone/platform/wayland/host/wayland_zaura_output_metrics_manager.cc
A ui/ozone/platform/wayland/host/wayland_zaura_output_metrics_manager.h
A ui/ozone/platform/wayland/host/wayland_zaura_output_metrics_manager_unittest.cc
M ui/ozone/platform/wayland/test/test_wayland_server_thread.cc
M ui/ozone/platform/wayland/test/test_wayland_server_thread.h
A ui/ozone/platform/wayland/test/test_zaura_output_metrics_manager.cc
A ui/ozone/platform/wayland/test/test_zaura_output_metrics_manager.h
24 files changed, 903 insertions(+), 2 deletions(-)


To view, visit change 4286784. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ida237018e644695229a3f70f7d17f3d911cd04df
Gerrit-Change-Number: 4286784
Gerrit-PatchSet: 12
Gerrit-Owner: Thomas Lukaszewicz <tl...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Reviewer: Thomas Lukaszewicz <tl...@chromium.org>
Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
Gerrit-MessageType: newchange

Thomas Lukaszewicz (Gerrit)

unread,
Feb 24, 2023, 6:36:46 PM2/24/23
to crostin...@chromium.org, ozone-...@chromium.org, yhanada+...@chromium.org, Mitsuru Oshima, Chromium LUCI CQ, Tricium, chromium...@chromium.org

Attention is currently required from: Mitsuru Oshima.

View Change

1 comment:

  • Patchset:

    • Patch Set #12:

      Oshima could you PTAL.

      Sorry for the large diff, I considered splitting the client and server side changes but it seemed like it would be easier to understand how this will work with both in the same CL. A lot of this is also just boilerplate + tests.

      This gives clients immediate initial state for output globals - the follow up is still a WIP pending some things that still need to be resolved with IsReady() for the various output classes and tests.

To view, visit change 4286784. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ida237018e644695229a3f70f7d17f3d911cd04df
Gerrit-Change-Number: 4286784
Gerrit-PatchSet: 12
Gerrit-Owner: Thomas Lukaszewicz <tl...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Reviewer: Thomas Lukaszewicz <tl...@chromium.org>
Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Comment-Date: Fri, 24 Feb 2023 23:36:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Mitsuru Oshima (Gerrit)

unread,
Mar 1, 2023, 1:27:18 AM3/1/23
to Thomas Lukaszewicz, crostin...@chromium.org, ozone-...@chromium.org, yhanada+...@chromium.org, Chromium LUCI CQ, Tricium, chromium...@chromium.org

Attention is currently required from: Thomas Lukaszewicz.

View Change

4 comments:

To view, visit change 4286784. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ida237018e644695229a3f70f7d17f3d911cd04df
Gerrit-Change-Number: 4286784
Gerrit-PatchSet: 17
Gerrit-Owner: Thomas Lukaszewicz <tl...@chromium.org>
Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
Gerrit-Reviewer: Thomas Lukaszewicz <tl...@chromium.org>
Gerrit-Attention: Thomas Lukaszewicz <tl...@chromium.org>
Gerrit-Comment-Date: Wed, 01 Mar 2023 06:27:02 +0000
Reply all
Reply to author
Forward
0 new messages