Switch WaylandCanvasSurface size function [chromium/src : main]

0 views
Skip to first unread message

Kyle Charbonneau (Gerrit)

unread,
Sep 24, 2025, 9:58:57 AM (13 days ago) Sep 24
to Colin Blundell, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
Attention needed from Colin Blundell

Kyle Charbonneau voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ic53dfe00a1328831f15e9c3a483b22cf56b5a6a9
Gerrit-Change-Number: 6979106
Gerrit-PatchSet: 1
Gerrit-Owner: Kyle Charbonneau <kyle...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
Gerrit-Attention: Colin Blundell <blun...@chromium.org>
Gerrit-Comment-Date: Wed, 24 Sep 2025 13:58:52 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Colin Blundell (Gerrit)

unread,
Sep 24, 2025, 10:35:10 AM (13 days ago) Sep 24
to Kyle Charbonneau, Chromium LUCI CQ, Colin Blundell, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
Attention needed from Kyle Charbonneau

Colin Blundell added 1 comment

File ui/ozone/platform/wayland/gpu/wayland_canvas_surface.cc
Line 70, Patchset 1 (Latest): size_t size_in_bytes = viz::SharedMemorySizeForSharedImageFormat(
Colin Blundell . unresolved

Thanks! Quick question for my understanding as it's a bit subtle wading through the code: This method is indeed a drop-in replacement for the ResourceSizes one? From your comments on the bug I had thought that it was a drop-in replacement for the BufferFormat utils that Saif is replacing, and that the ResourceSizes methods had some differences? Perhaps those aren't relevant for RGB*8?

Open in Gerrit

Related details

Attention is currently required from:
  • Kyle Charbonneau
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic53dfe00a1328831f15e9c3a483b22cf56b5a6a9
    Gerrit-Change-Number: 6979106
    Gerrit-PatchSet: 1
    Gerrit-Owner: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Attention: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 14:34:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kyle Charbonneau (Gerrit)

    unread,
    Sep 24, 2025, 10:38:18 AM (13 days ago) Sep 24
    to Chromium LUCI CQ, Colin Blundell, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
    Attention needed from Colin Blundell

    Kyle Charbonneau voted and added 1 comment

    Votes added by Kyle Charbonneau

    Commit-Queue+1

    1 comment

    File ui/ozone/platform/wayland/gpu/wayland_canvas_surface.cc
    Line 70, Patchset 1 (Latest): size_t size_in_bytes = viz::SharedMemorySizeForSharedImageFormat(
    Colin Blundell . resolved

    Thanks! Quick question for my understanding as it's a bit subtle wading through the code: This method is indeed a drop-in replacement for the ResourceSizes one? From your comments on the bug I had thought that it was a drop-in replacement for the BufferFormat utils that Saif is replacing, and that the ResourceSizes methods had some differences? Perhaps those aren't relevant for RGB*8?

    Kyle Charbonneau

    Right, SharedMemorySizeForSharedImageFormat() [aligns](https://source.chromium.org/chromium/chromium/src/+/main:components/viz/common/resources/shared_image_format_utils.cc;l=283-284;drc=ce651b75de646270fc28ce175bcc951842095309) rows to 4 bytes but ResourceSizes doesn't. For RGBA_8888 that doesn't matter as it's 4 bytes per pixel and thus already 4 byte aligned.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Colin Blundell
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic53dfe00a1328831f15e9c3a483b22cf56b5a6a9
    Gerrit-Change-Number: 6979106
    Gerrit-PatchSet: 1
    Gerrit-Owner: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 14:38:13 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Colin Blundell (Gerrit)

    unread,
    Sep 24, 2025, 10:41:53 AM (13 days ago) Sep 24
    to Kyle Charbonneau, Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
    Attention needed from Kyle Charbonneau

    Colin Blundell voted and added 1 comment

    Votes added by Colin Blundell

    Code-Review+1

    1 comment

    Patchset-level comments
    Colin Blundell . resolved

    Thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kyle Charbonneau
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic53dfe00a1328831f15e9c3a483b22cf56b5a6a9
    Gerrit-Change-Number: 6979106
    Gerrit-PatchSet: 1
    Gerrit-Owner: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Attention: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 14:41:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Kyle Charbonneau (Gerrit)

    unread,
    Sep 24, 2025, 11:02:46 AM (13 days ago) Sep 24
    to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org

    Kyle Charbonneau voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic53dfe00a1328831f15e9c3a483b22cf56b5a6a9
    Gerrit-Change-Number: 6979106
    Gerrit-PatchSet: 1
    Gerrit-Owner: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 15:02:41 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Sep 24, 2025, 11:05:31 AM (13 days ago) Sep 24
    to Kyle Charbonneau, Colin Blundell, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Switch WaylandCanvasSurface size function

    Use SharedMemorySizeForSharedImageFormat() to get rid of remaining uses
    of viz::ResourceSizes. The new function enforces 4 bytes alignment but
    RGBA_8888 is already 4 byte aligned.
    Bug: 446886466
    Change-Id: Ic53dfe00a1328831f15e9c3a483b22cf56b5a6a9
    Reviewed-by: Colin Blundell <blun...@chromium.org>
    Commit-Queue: Kyle Charbonneau <kyle...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1519987}
    Files:
    • M ui/ozone/platform/wayland/gpu/wayland_canvas_surface.cc
    Change size: XS
    Delta: 1 file changed, 4 insertions(+), 3 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Colin Blundell
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic53dfe00a1328831f15e9c3a483b22cf56b5a6a9
    Gerrit-Change-Number: 6979106
    Gerrit-PatchSet: 2
    Gerrit-Owner: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages