[//ui] Remove unneeded header comment on GBMSupportX11 [chromium/src : main]

0 views
Skip to first unread message

Colin Blundell (Gerrit)

unread,
Nov 28, 2025, 11:11:42 AM (3 days ago) Nov 28
to Colin Blundell, Vasiliy Telezhnikov, chromium...@chromium.org, ozone-...@chromium.org
Attention needed from Vasiliy Telezhnikov

Colin Blundell added 1 comment

File ui/gfx/linux/gbm_support_x11.h
Line 54, Patchset 1 (Latest): const std::vector<gfx::BufferUsageAndFormat> supported_configs_;
Colin Blundell . unresolved

Is there a reason this is actually [needed](https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/linux/gbm_support_x11.cc;l=136-144?q=gbm_support_x11.cc&ss=chromium), e.g. is it expensive to try to create a buffer and fail or do the `supported_configs_` results actually sometimes give different results than actually just trying to create the buffer in the course of normal execution and we want to privilege the `supported_configs_` results?

Open in Gerrit

Related details

Attention is currently required from:
  • Vasiliy Telezhnikov
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I770e40383198ed5db57d7590c63a84fb297dbb1c
Gerrit-Change-Number: 7210910
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Comment-Date: Fri, 28 Nov 2025 16:11:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Vasiliy Telezhnikov (Gerrit)

unread,
Nov 28, 2025, 12:57:47 PM (3 days ago) Nov 28
to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org
Attention needed from Colin Blundell

Vasiliy Telezhnikov voted and added 2 comments

Votes added by Vasiliy Telezhnikov

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Vasiliy Telezhnikov . resolved

lgtm, thanks.

File ui/gfx/linux/gbm_support_x11.h
Line 54, Patchset 1 (Latest): const std::vector<gfx::BufferUsageAndFormat> supported_configs_;
Colin Blundell . unresolved

Is there a reason this is actually [needed](https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/linux/gbm_support_x11.cc;l=136-144?q=gbm_support_x11.cc&ss=chromium), e.g. is it expensive to try to create a buffer and fail or do the `supported_configs_` results actually sometimes give different results than actually just trying to create the buffer in the course of normal execution and we want to privilege the `supported_configs_` results?

Vasiliy Telezhnikov

Well, trying to create buffer is kernel round-trip, not free, not particularly expensive.

At some point that code was a DCHECK, though I don't remember why we decided to handle it gracefully.

In general I think this boils to what we will do next. If we'd need to implement `IsNativePixmapConfigSupported` or if decide to change [this](https://source.chromium.org/chromium/chromium/src/+/main:gpu/command_buffer/service/shared_image/shared_image_factory.cc;drc=f94df6678b9dba1f9faf292374830260cc90ae54;l=389) to always try first and try shmem if it fails then we probably want to cache the results.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I770e40383198ed5db57d7590c63a84fb297dbb1c
    Gerrit-Change-Number: 7210910
    Gerrit-PatchSet: 1
    Gerrit-Owner: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Comment-Date: Fri, 28 Nov 2025 17:57:37 +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,
    3:59 AM (2 hours ago) 3:59 AM
    to Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, ozone-...@chromium.org

    Colin Blundell voted and added 2 comments

    Votes added by Colin Blundell

    Commit-Queue+2

    2 comments

    Patchset-level comments
    Colin Blundell . resolved

    Thanks!

    File ui/gfx/linux/gbm_support_x11.h
    Line 54, Patchset 1 (Latest): const std::vector<gfx::BufferUsageAndFormat> supported_configs_;
    Colin Blundell . resolved

    Is there a reason this is actually [needed](https://source.chromium.org/chromium/chromium/src/+/main:ui/gfx/linux/gbm_support_x11.cc;l=136-144?q=gbm_support_x11.cc&ss=chromium), e.g. is it expensive to try to create a buffer and fail or do the `supported_configs_` results actually sometimes give different results than actually just trying to create the buffer in the course of normal execution and we want to privilege the `supported_configs_` results?

    Vasiliy Telezhnikov

    Well, trying to create buffer is kernel round-trip, not free, not particularly expensive.

    At some point that code was a DCHECK, though I don't remember why we decided to handle it gracefully.

    In general I think this boils to what we will do next. If we'd need to implement `IsNativePixmapConfigSupported` or if decide to change [this](https://source.chromium.org/chromium/chromium/src/+/main:gpu/command_buffer/service/shared_image/shared_image_factory.cc;drc=f94df6678b9dba1f9faf292374830260cc90ae54;l=389) to always try first and try shmem if it fails then we probably want to cache the results.

    Colin Blundell

    Thanks, that makes sense! So we'll leave it as-is for now.

    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: I770e40383198ed5db57d7590c63a84fb297dbb1c
      Gerrit-Change-Number: 7210910
      Gerrit-PatchSet: 1
      Gerrit-Owner: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Comment-Date: Mon, 01 Dec 2025 08:59:13 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
      Comment-In-Reply-To: Vasiliy Telezhnikov <vas...@chromium.org>
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      4:53 AM (1 hour ago) 4:53 AM
      to Colin Blundell, Vasiliy Telezhnikov, chromium...@chromium.org, ozone-...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      [//ui] Remove unneeded header comment on GBMSupportX11

      This is no longer exposed on the interface, so there's no reason for a
      comment about it in the header.
      Bug: 404905709
      Change-Id: I770e40383198ed5db57d7590c63a84fb297dbb1c
      Reviewed-by: Vasiliy Telezhnikov <vas...@chromium.org>
      Commit-Queue: Colin Blundell <blun...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1551975}
      Files:
      • M ui/gfx/linux/gbm_support_x11.h
      Change size: XS
      Delta: 1 file changed, 1 insertion(+), 2 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Vasiliy Telezhnikov
      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: I770e40383198ed5db57d7590c63a84fb297dbb1c
      Gerrit-Change-Number: 7210910
      Gerrit-PatchSet: 2
      Gerrit-Owner: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages