Move Dawn Ozone Image Representation over to Shared Texture Memory [chromium/src : main]

0 views
Skip to first unread message

Peter McNeeley (Gerrit)

unread,
Feb 5, 2026, 10:20:39 AMFeb 5
to Chromium LUCI CQ, chromium...@chromium.org, David Worsham, Robert Kroeger, cc-...@chromium.org, emi...@google.com, fuchsia...@chromium.org, headless...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, penghu...@chromium.org, spang...@chromium.org

Peter McNeeley added 1 comment

File ui/ozone/platform/drm/gpu/gbm_pixmap.cc
Line 70, Patchset 3 (Latest): return ui::GetFourCCFormatFromBufferFormat(buffer_->GetBufferFormat());
Peter McNeeley . unresolved

we should use 'GetFourCCFormatFromSharedImageFormat' now
aka use the shared image format above.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: Ifaf2b8de9e9186a9f9e44ab0a74f2774de9035f6
Gerrit-Change-Number: 6173060
Gerrit-PatchSet: 3
Gerrit-Owner: Peter McNeeley <peterm...@google.com>
Gerrit-Reviewer: Peter McNeeley <peterm...@google.com>
Gerrit-CC: David Worsham <dwor...@google.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Comment-Date: Thu, 05 Feb 2026 15:20:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Peter McNeeley (Gerrit)

unread,
Feb 6, 2026, 2:30:00 PM (14 days ago) Feb 6
to Chromium LUCI CQ, chromium...@chromium.org, David Worsham, Robert Kroeger, cc-...@chromium.org, emi...@google.com, fuchsia...@chromium.org, headless...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, penghu...@chromium.org, spang...@chromium.org

Peter McNeeley added 1 comment

File ui/ozone/platform/drm/gpu/gbm_pixmap.cc
Line 70, Patchset 3: return ui::GetFourCCFormatFromBufferFormat(buffer_->GetBufferFormat());
Peter McNeeley . resolved

we should use 'GetFourCCFormatFromSharedImageFormat' now
aka use the shared image format above.

Peter McNeeley

Done

Open in Gerrit

Related details

Attention set is empty
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: Ifaf2b8de9e9186a9f9e44ab0a74f2774de9035f6
    Gerrit-Change-Number: 6173060
    Gerrit-PatchSet: 7
    Gerrit-Owner: Peter McNeeley <peterm...@google.com>
    Gerrit-Reviewer: Peter McNeeley <peterm...@google.com>
    Gerrit-CC: David Worsham <dwor...@google.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-Comment-Date: Fri, 06 Feb 2026 19:29:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Peter McNeeley <peterm...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vasiliy Telezhnikov (Gerrit)

    unread,
    Feb 18, 2026, 12:49:12 PM (2 days ago) Feb 18
    to Peter McNeeley, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, David Worsham, Robert Kroeger, cc-...@chromium.org, emi...@google.com, fuchsia...@chromium.org, headless...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, penghu...@chromium.org, spang...@chromium.org
    Attention needed from Peter McNeeley

    Vasiliy Telezhnikov voted and added 2 comments

    Votes added by Vasiliy Telezhnikov

    Code-Review+1

    2 comments

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

    lgtm % nit, thanks.

    File gpu/command_buffer/service/shared_image/dawn_ozone_image_representation.cc
    Line 144, Patchset 10 (Latest): dmaBufDesc.drmFormat = pixmap_->GetFourCCBufferFormat();
    Vasiliy Telezhnikov . unresolved

    nit: Get we call `GetFourCCFormatFromSharedImageFormat` here instead of adding the method?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Peter McNeeley
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: Ifaf2b8de9e9186a9f9e44ab0a74f2774de9035f6
      Gerrit-Change-Number: 6173060
      Gerrit-PatchSet: 10
      Gerrit-Owner: Peter McNeeley <peterm...@google.com>
      Gerrit-Reviewer: Peter McNeeley <peterm...@google.com>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: David Worsham <dwor...@google.com>
      Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
      Gerrit-Attention: Peter McNeeley <peterm...@google.com>
      Gerrit-Comment-Date: Wed, 18 Feb 2026 17:49:07 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Peter McNeeley (Gerrit)

      unread,
      Feb 18, 2026, 9:57:41 PM (2 days ago) Feb 18
      to Vasiliy Telezhnikov, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, David Worsham, Robert Kroeger, cc-...@chromium.org, emi...@google.com, fuchsia...@chromium.org, headless...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, penghu...@chromium.org, spang...@chromium.org
      Attention needed from Vasiliy Telezhnikov

      Peter McNeeley added 1 comment

      File gpu/command_buffer/service/shared_image/dawn_ozone_image_representation.cc
      Line 144, Patchset 10 (Latest): dmaBufDesc.drmFormat = pixmap_->GetFourCCBufferFormat();
      Vasiliy Telezhnikov . unresolved

      nit: Get we call `GetFourCCFormatFromSharedImageFormat` here instead of adding the method?

      Peter McNeeley

      I used the method because i couldnt call GetFourCCFormatFromBufferFormat because it was somewhere in linux drm. I dont think this changed for GetFourCCFormatFromSharedImageFormat. So i think we should leave it as such

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Vasiliy Telezhnikov
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: Ifaf2b8de9e9186a9f9e44ab0a74f2774de9035f6
      Gerrit-Change-Number: 6173060
      Gerrit-PatchSet: 10
      Gerrit-Owner: Peter McNeeley <peterm...@google.com>
      Gerrit-Reviewer: Peter McNeeley <peterm...@google.com>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: David Worsham <dwor...@google.com>
      Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
      Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Comment-Date: Thu, 19 Feb 2026 02:57:34 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Vasiliy Telezhnikov <vas...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Vasiliy Telezhnikov (Gerrit)

      unread,
      Feb 19, 2026, 1:59:55 PM (17 hours ago) Feb 19
      to Peter McNeeley, Michael Spang, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, David Worsham, Robert Kroeger, cc-...@chromium.org, emi...@google.com, fuchsia...@chromium.org, headless...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, penghu...@chromium.org, spang...@chromium.org
      Attention needed from Michael Spang and Peter McNeeley

      Vasiliy Telezhnikov added 1 comment

      File gpu/command_buffer/service/shared_image/dawn_ozone_image_representation.cc
      Line 144, Patchset 10 (Latest): dmaBufDesc.drmFormat = pixmap_->GetFourCCBufferFormat();
      Vasiliy Telezhnikov . unresolved

      nit: Get we call `GetFourCCFormatFromSharedImageFormat` here instead of adding the method?

      Peter McNeeley

      I used the method because i couldnt call GetFourCCFormatFromBufferFormat because it was somewhere in linux drm. I dont think this changed for GetFourCCFormatFromSharedImageFormat. So i think we should leave it as such

      Vasiliy Telezhnikov

      I believe you can now, we changed it [here](https://chromium-review.googlesource.com/c/chromium/src/+/7545452). You probably will need to move [this](https://source.chromium.org/chromium/chromium/src/+/main:gpu/command_buffer/service/BUILD.gn;drc=3628a05592a7424a20692d6874f81c7d4e959adc;l=432) to deps above.

      I don't have strong feelings about it though, it's more to keep change smaller and maintain illusion that NativePixmap is not posix-only.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Michael Spang
      • Peter McNeeley
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: Ifaf2b8de9e9186a9f9e44ab0a74f2774de9035f6
      Gerrit-Change-Number: 6173060
      Gerrit-PatchSet: 10
      Gerrit-Owner: Peter McNeeley <peterm...@google.com>
      Gerrit-Reviewer: Michael Spang <sp...@chromium.org>
      Gerrit-Reviewer: Peter McNeeley <peterm...@google.com>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: David Worsham <dwor...@google.com>
      Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
      Gerrit-Attention: Peter McNeeley <peterm...@google.com>
      Gerrit-Attention: Michael Spang <sp...@chromium.org>
      Gerrit-Comment-Date: Thu, 19 Feb 2026 18:59:48 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Peter McNeeley <peterm...@google.com>
      Comment-In-Reply-To: Vasiliy Telezhnikov <vas...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Peter McNeeley (Gerrit)

      unread,
      Feb 19, 2026, 11:47:03 PM (7 hours ago) Feb 19
      to Michael Spang, Vasiliy Telezhnikov, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, David Worsham, Robert Kroeger, cc-...@chromium.org, emi...@google.com, fuchsia...@chromium.org, headless...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org, penghu...@chromium.org, spang...@chromium.org
      Attention needed from Michael Spang and Vasiliy Telezhnikov

      Peter McNeeley added 1 comment

      File gpu/command_buffer/service/shared_image/dawn_ozone_image_representation.cc
      Line 144, Patchset 10 (Latest): dmaBufDesc.drmFormat = pixmap_->GetFourCCBufferFormat();
      Vasiliy Telezhnikov . unresolved

      nit: Get we call `GetFourCCFormatFromSharedImageFormat` here instead of adding the method?

      Peter McNeeley

      I used the method because i couldnt call GetFourCCFormatFromBufferFormat because it was somewhere in linux drm. I dont think this changed for GetFourCCFormatFromSharedImageFormat. So i think we should leave it as such

      Vasiliy Telezhnikov

      I believe you can now, we changed it [here](https://chromium-review.googlesource.com/c/chromium/src/+/7545452). You probably will need to move [this](https://source.chromium.org/chromium/chromium/src/+/main:gpu/command_buffer/service/BUILD.gn;drc=3628a05592a7424a20692d6874f81c7d4e959adc;l=432) to deps above.

      I don't have strong feelings about it though, it's more to keep change smaller and maintain illusion that NativePixmap is not posix-only.

      Peter McNeeley

      If you dont mind I will leave this as is. I had some issues with this particular aspect of the CL and this was the best that I came up with.

      Perhaps another adventurer will come along and tackle this.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Michael Spang
      • Vasiliy Telezhnikov
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: Ifaf2b8de9e9186a9f9e44ab0a74f2774de9035f6
      Gerrit-Change-Number: 6173060
      Gerrit-PatchSet: 10
      Gerrit-Owner: Peter McNeeley <peterm...@google.com>
      Gerrit-Reviewer: Michael Spang <sp...@chromium.org>
      Gerrit-Reviewer: Peter McNeeley <peterm...@google.com>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: David Worsham <dwor...@google.com>
      Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
      Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Attention: Michael Spang <sp...@chromium.org>
      Gerrit-Comment-Date: Fri, 20 Feb 2026 04:46:57 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages