[viz] Optimize SharedImageFormat set usage in Flatland and GL utils [chromium/src : main]

0 views
Skip to first unread message

Andrew Paseltiner (Gerrit)

unread,
Mar 19, 2026, 2:29:38 PMMar 19
to Victor Miura, David Song, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, David Worsham, Robert Kroeger, emi...@google.com, fuchsia...@chromium.org, ozone-...@chromium.org, spang...@chromium.org
Attention needed from David Song and Victor Miura

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • David Song
  • Victor Miura
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
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: I798c9a9dd6259afc6964fafe9a56c967b3fcc369
Gerrit-Change-Number: 7684276
Gerrit-PatchSet: 6
Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
Gerrit-Reviewer: David Song <winter...@google.com>
Gerrit-Reviewer: Victor Miura <vmi...@chromium.org>
Gerrit-CC: David Worsham <dwor...@google.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Victor Miura <vmi...@chromium.org>
Gerrit-Attention: David Song <winter...@google.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 18:29:34 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

David Song (Gerrit)

unread,
Mar 19, 2026, 2:32:39 PMMar 19
to Andrew Paseltiner, Victor Miura, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, David Worsham, Robert Kroeger, emi...@google.com, fuchsia...@chromium.org, ozone-...@chromium.org, spang...@chromium.org
Attention needed from Andrew Paseltiner and Victor Miura

David Song voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Andrew Paseltiner
  • Victor Miura
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    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: I798c9a9dd6259afc6964fafe9a56c967b3fcc369
    Gerrit-Change-Number: 7684276
    Gerrit-PatchSet: 6
    Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: David Song <winter...@google.com>
    Gerrit-Reviewer: Victor Miura <vmi...@chromium.org>
    Gerrit-CC: David Worsham <dwor...@google.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-Attention: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Attention: Victor Miura <vmi...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Mar 2026 18:32:28 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Victor Miura (Gerrit)

    unread,
    Mar 20, 2026, 11:10:22 AM (13 days ago) Mar 20
    to Andrew Paseltiner, David Song, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, David Worsham, Robert Kroeger, emi...@google.com, fuchsia...@chromium.org, ozone-...@chromium.org, spang...@chromium.org
    Attention needed from Andrew Paseltiner

    Victor Miura voted and added 1 comment

    Votes added by Victor Miura

    Code-Review+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 6 (Latest):
    Victor Miura . resolved

    lgtm, thanks

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andrew Paseltiner
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    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: I798c9a9dd6259afc6964fafe9a56c967b3fcc369
    Gerrit-Change-Number: 7684276
    Gerrit-PatchSet: 6
    Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: David Song <winter...@google.com>
    Gerrit-Reviewer: Victor Miura <vmi...@chromium.org>
    Gerrit-CC: David Worsham <dwor...@google.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-Attention: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Comment-Date: Fri, 20 Mar 2026 15:10:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Andrew Paseltiner (Gerrit)

    unread,
    Mar 20, 2026, 11:10:58 AM (13 days ago) Mar 20
    to Victor Miura, David Song, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, David Worsham, Robert Kroeger, emi...@google.com, fuchsia...@chromium.org, ozone-...@chromium.org, spang...@chromium.org

    Andrew Paseltiner 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
    • requirement satisfiedReview-Enforcement
    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: I798c9a9dd6259afc6964fafe9a56c967b3fcc369
    Gerrit-Change-Number: 7684276
    Gerrit-PatchSet: 6
    Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: David Song <winter...@google.com>
    Gerrit-Reviewer: Victor Miura <vmi...@chromium.org>
    Gerrit-CC: David Worsham <dwor...@google.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-Comment-Date: Fri, 20 Mar 2026 15:10:50 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Mar 20, 2026, 11:13:46 AM (13 days ago) Mar 20
    to Andrew Paseltiner, Victor Miura, David Song, AyeAye, chromium...@chromium.org, David Worsham, Robert Kroeger, emi...@google.com, fuchsia...@chromium.org, ozone-...@chromium.org, spang...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    [viz] Optimize SharedImageFormat set usage in Flatland and GL utils

    - In gpu/command_buffer/service/gl_utils.cc:
    Use the base::flat_set initializer list constructor directly for
    mappable_formats instead of through an intermediate vector.
    - In FlatlandSurfaceFactory and FlatlandSysmemBufferCollection:
    Update the initialization of kSupportedFormats to use the flat_set
    initializer list constructor directly.

    These sites previously used base::MakeFlatSet with a temporary
    std::vector. Since base::MakeFlatSet takes its input container by const
    ref, this resulted in an unnecessary vector being created and copied.

    Note: Using base::MakeFixedFlatSet for these format lists would be
    preferable for performance, but it's currently not possible because
    viz::SharedImageFormat lacks constexpr comparison operators.
    Bug: 494183505
    Change-Id: I798c9a9dd6259afc6964fafe9a56c967b3fcc369
    Reviewed-by: David Song <winter...@google.com>
    Reviewed-by: Victor Miura <vmi...@chromium.org>
    Commit-Queue: Andrew Paseltiner <apase...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1602621}
    Files:
    • M gpu/command_buffer/service/gl_utils.cc
    • M ui/ozone/platform/flatland/flatland_surface_factory.cc
    • M ui/ozone/platform/flatland/flatland_sysmem_buffer_collection.cc
    Change size: M
    Delta: 3 files changed, 23 insertions(+), 29 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Victor Miura, +1 by David Song
    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: I798c9a9dd6259afc6964fafe9a56c967b3fcc369
    Gerrit-Change-Number: 7684276
    Gerrit-PatchSet: 7
    Gerrit-Owner: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: Andrew Paseltiner <apase...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: David Song <winter...@google.com>
    Gerrit-Reviewer: Victor Miura <vmi...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages