[//ui] Hardcode BGRA for CreateNativePixmapForVulkan() [chromium/src : main]

0 views
Skip to first unread message

Vasiliy Telezhnikov (Gerrit)

unread,
Nov 4, 2025, 9:41:43 AM (2 days ago) Nov 4
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/ozone/platform/drm/gpu/gbm_surface_factory.cc
Line 326, Patchset 1 (Latest): PFN_vkCreateDmaBufImageINTEL create_dma_buf_image_intel =
Vasiliy Telezhnikov . resolved

(out of the scope here): We probably should move this code to demo (and maybe use VK_EXT_image_drm_format_modifier, though that is arguable lower priority), so we can remove this function.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
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: Ie2ec36033e4a34202fd3e8c5f64015f7411eca6c
Gerrit-Change-Number: 7117641
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: Tue, 04 Nov 2025 14:41:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Nov 5, 2025, 2:56:40 AM (yesterday) Nov 5
to Colin Blundell, Vasiliy Telezhnikov, chromium...@chromium.org, ozone-...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[//ui] Hardcode BGRA for CreateNativePixmapForVulkan()

This format is effectively already hardcoded in the one implementation
of this method [1]. Hardcoding it in the interface both adds clarity
here and removes an unneeded usage of BufferFormat.

[1] https://source.chromium.org/chromium/chromium/src/+/main:ui/ozone/platform/drm/gpu/gbm_surface_factory.cc;l=345;drc=738b9cee146635852b8f994cb3fd4e101285c29e;bpv=1;bpt=1
Bug: 450325664
Change-Id: Ie2ec36033e4a34202fd3e8c5f64015f7411eca6c
Reviewed-by: Vasiliy Telezhnikov <vas...@chromium.org>
Commit-Queue: Colin Blundell <blun...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1540502}
Files:
  • M ui/ozone/demo/vulkan_overlay_renderer.cc
  • M ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
  • M ui/ozone/platform/drm/gpu/gbm_surface_factory.h
  • M ui/ozone/public/surface_factory_ozone.cc
  • M ui/ozone/public/surface_factory_ozone.h
Change size: S
Delta: 5 files changed, 6 insertions(+), 12 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: Ie2ec36033e4a34202fd3e8c5f64015f7411eca6c
Gerrit-Change-Number: 7117641
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

Colin Blundell (Gerrit)

unread,
Nov 5, 2025, 4:48:01 AM (yesterday) Nov 5
to Chromium LUCI CQ, Colin Blundell, Vasiliy Telezhnikov, chromium...@chromium.org, ozone-...@chromium.org

Colin Blundell added 1 comment

File ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
Line 326, Patchset 1: PFN_vkCreateDmaBufImageINTEL create_dma_buf_image_intel =
Vasiliy Telezhnikov . resolved

(out of the scope here): We probably should move this code to demo (and maybe use VK_EXT_image_drm_format_modifier, though that is arguable lower priority), so we can remove this function.

Colin Blundell

You mean move the whole `CreateNativePixmapForVulkan()` method, right? We would need a SurfaceFactoryOzone method to create the backing GbmBuffer unless I'm missing something - is that what you were thinking?

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: Ie2ec36033e4a34202fd3e8c5f64015f7411eca6c
Gerrit-Change-Number: 7117641
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>
Gerrit-Comment-Date: Wed, 05 Nov 2025 09:47:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Vasiliy Telezhnikov <vas...@chromium.org>
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages