[ozone] Remove gfx::BufferPlane and use std::optional<int> plane_index [chromium/src : main]

0 views
Skip to first unread message

Saifuddin Hitawala (Gerrit)

unread,
Feb 26, 2026, 3:49:46 PMFeb 26
to Vasiliy Telezhnikov, Colin Blundell, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org
Attention needed from Colin Blundell and Vasiliy Telezhnikov

Saifuddin Hitawala voted and added 1 comment

Votes added by Saifuddin Hitawala

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Saifuddin Hitawala . resolved

Please take a look.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
  • Vasiliy Telezhnikov
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: I33f4993e16747bc0465c7f485de94f0d22b165c8
Gerrit-Change-Number: 7613869
Gerrit-PatchSet: 3
Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Attention: Colin Blundell <blun...@chromium.org>
Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
Gerrit-Comment-Date: Thu, 26 Feb 2026 20:49:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Vasiliy Telezhnikov (Gerrit)

unread,
Feb 26, 2026, 4:02:31 PMFeb 26
to Saifuddin Hitawala, Colin Blundell, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org
Attention needed from Colin Blundell and Saifuddin Hitawala

Vasiliy Telezhnikov voted and added 1 comment

Votes added by Vasiliy Telezhnikov

Code-Review+1

1 comment

Patchset-level comments
Vasiliy Telezhnikov . resolved

lgtm, thanks.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
  • Saifuddin Hitawala
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: I33f4993e16747bc0465c7f485de94f0d22b165c8
    Gerrit-Change-Number: 7613869
    Gerrit-PatchSet: 3
    Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Comment-Date: Thu, 26 Feb 2026 21:02:26 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Colin Blundell (Gerrit)

    unread,
    Feb 27, 2026, 3:12:49 AMFeb 27
    to Saifuddin Hitawala, Vasiliy Telezhnikov, Colin Blundell, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org
    Attention needed from Saifuddin Hitawala

    Colin Blundell added 5 comments

    Patchset-level comments
    Colin Blundell . resolved

    Thanks! It's a little tricky to reason 100% that this CL doesn't have unintended side-effects - it might be better to break it up into a couple steps if feasible?

    File gpu/command_buffer/service/shared_image/ozone_image_gl_textures_holder.cc
    Line 47, Patchset 3 (Parent):gfx::BufferPlane GetBufferPlane(viz::SharedImageFormat format,
    Colin Blundell . unresolved

    Am I seeing correctly from the rest of this CL that the code actually implicitly assumes that the config here will be kY_UV, or are there things I'm missing?

    Line 67, Patchset 3 (Latest): // The plane is DEFAULT for single planar formats and multi planar with
    Colin Blundell . unresolved

    nit: eliminate or rephrase this comment

    File media/gpu/chromeos/gl_image_processor_backend.cc
    Line 111, Patchset 3 (Latest): std::move(native_pixmap), viz::MultiPlaneFormat::kNV12, std::nullopt,
    Colin Blundell . unresolved

    nit: /buffer_plane_index=/std::nullopt

    This could also use a comment on why we're passing nullopt with NV12 - is it because we're using external sampling since this is ChromeOS? I realize that this is pre-existing.

    File ui/ozone/common/native_pixmap_egl_binding.cc
    Line 206, Patchset 3 (Parent): size_t pixmap_plane = plane_ == gfx::BufferPlane::Y ? 0 : 1;
    Colin Blundell . unresolved

    Am I seeing correctly that this is the only place where we actually process the BufferPlane value, or are there other places I'm missing?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Saifuddin Hitawala
    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: I33f4993e16747bc0465c7f485de94f0d22b165c8
      Gerrit-Change-Number: 7613869
      Gerrit-PatchSet: 3
      Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Comment-Date: Fri, 27 Feb 2026 08:12:31 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Saifuddin Hitawala (Gerrit)

      unread,
      Feb 27, 2026, 10:49:03 AM (14 days ago) Feb 27
      to Vasiliy Telezhnikov, Colin Blundell, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org
      Attention needed from Colin Blundell

      Saifuddin Hitawala added 6 comments

      Patchset-level comments
      Colin Blundell . resolved

      Thanks! It's a little tricky to reason 100% that this CL doesn't have unintended side-effects - it might be better to break it up into a couple steps if feasible?

      Saifuddin Hitawala

      There's only meaningful changes to few files as rest are plumbing. I had tried splitting it when working on it, but the nature of ImportNativePixmap being the only method using it made it so that it was easier to do it all together.

      File-level comment, Patchset 3:
      Saifuddin Hitawala . resolved

      Addressed some feedback, PTAL.

      File gpu/command_buffer/service/shared_image/ozone_image_gl_textures_holder.cc
      Line 47, Patchset 3 (Parent):gfx::BufferPlane GetBufferPlane(viz::SharedImageFormat format,
      Colin Blundell . unresolved

      Am I seeing correctly from the rest of this CL that the code actually implicitly assumes that the config here will be kY_UV, or are there things I'm missing?

      Saifuddin Hitawala

      I'm not sure it is always kY_UV here, I believe OzoneImageBacking can support other plane configs like YV12 (which we had a BufferFormat for as well).

      Line 67, Patchset 3: // The plane is DEFAULT for single planar formats and multi planar with
      Colin Blundell . resolved

      nit: eliminate or rephrase this comment

      Saifuddin Hitawala

      Done

      File media/gpu/chromeos/gl_image_processor_backend.cc
      Line 111, Patchset 3: std::move(native_pixmap), viz::MultiPlaneFormat::kNV12, std::nullopt,
      Colin Blundell . resolved

      nit: /buffer_plane_index=/std::nullopt

      This could also use a comment on why we're passing nullopt with NV12 - is it because we're using external sampling since this is ChromeOS? I realize that this is pre-existing.

      Saifuddin Hitawala

      Sounds good, updated to add the comments here and in other places.

      File ui/ozone/common/native_pixmap_egl_binding.cc
      Line 206, Patchset 3 (Parent): size_t pixmap_plane = plane_ == gfx::BufferPlane::Y ? 0 : 1;
      Colin Blundell . unresolved

      Am I seeing correctly that this is the only place where we actually process the BufferPlane value, or are there other places I'm missing?

      Saifuddin Hitawala

      Yes, this is the only place that processes BufferPlane value. I'm actually not sure why this DCHECK was there. The value here can come from GLImageProcessBackend (which is Y/UV), but also from OzoneImageGLTextureHolders which I think can be formats other than Y_UV config, like YV12.

      But yes this has the unintended side-effect of earlier always being 0/1 but now it could be 2/3 as well. I think if anything it is more correct now, but open to suggestions.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Colin Blundell
      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: I33f4993e16747bc0465c7f485de94f0d22b165c8
      Gerrit-Change-Number: 7613869
      Gerrit-PatchSet: 4
      Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Attention: Colin Blundell <blun...@chromium.org>
      Gerrit-Comment-Date: Fri, 27 Feb 2026 15:48:57 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Colin Blundell (Gerrit)

      unread,
      Feb 27, 2026, 11:00:08 AM (14 days ago) Feb 27
      to Saifuddin Hitawala, Colin Blundell, Vasiliy Telezhnikov, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org
      Attention needed from Saifuddin Hitawala

      Colin Blundell voted and added 3 comments

      Votes added by Colin Blundell

      Code-Review+1

      3 comments

      Patchset-level comments
      Colin Blundell . resolved

      Thanks!

      File gpu/command_buffer/service/shared_image/ozone_image_gl_textures_holder.cc
      Line 47, Patchset 3 (Parent):gfx::BufferPlane GetBufferPlane(viz::SharedImageFormat format,
      Colin Blundell . unresolved

      Am I seeing correctly from the rest of this CL that the code actually implicitly assumes that the config here will be kY_UV, or are there things I'm missing?

      Saifuddin Hitawala

      I'm not sure it is always kY_UV here, I believe OzoneImageBacking can support other plane configs like YV12 (which we had a BufferFormat for as well).

      Colin Blundell

      The comment about the usage point is what led to me making the comment here - it seems like the one actualy consumer of the `BufferPlane` value just wouldn't work correctly with non Y_UV layouts unless I'm missing something?

      File ui/ozone/common/native_pixmap_egl_binding.cc
      Line 206, Patchset 3 (Parent): size_t pixmap_plane = plane_ == gfx::BufferPlane::Y ? 0 : 1;
      Colin Blundell . unresolved

      Am I seeing correctly that this is the only place where we actually process the BufferPlane value, or are there other places I'm missing?

      Saifuddin Hitawala

      Yes, this is the only place that processes BufferPlane value. I'm actually not sure why this DCHECK was there. The value here can come from GLImageProcessBackend (which is Y/UV), but also from OzoneImageGLTextureHolders which I think can be formats other than Y_UV config, like YV12.

      But yes this has the unintended side-effect of earlier always being 0/1 but now it could be 2/3 as well. I think if anything it is more correct now, but open to suggestions.

      Colin Blundell

      Hmm, I wonder if we want to separate that out into followup and preserve the current behavior in this CL by "gating" the plane index to 1 if it's >= 1? Just to ensure that this CL is a behavioral no-op.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Saifuddin Hitawala
      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: I33f4993e16747bc0465c7f485de94f0d22b165c8
      Gerrit-Change-Number: 7613869
      Gerrit-PatchSet: 4
      Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Comment-Date: Fri, 27 Feb 2026 15:59:49 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Saifuddin Hitawala <hita...@chromium.org>
      Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Saifuddin Hitawala (Gerrit)

      unread,
      Feb 27, 2026, 11:46:27 AM (14 days ago) Feb 27
      to Colin Blundell, Vasiliy Telezhnikov, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org

      Saifuddin Hitawala voted and added 3 comments

      Votes added by Saifuddin Hitawala

      Commit-Queue+2

      3 comments

      Patchset-level comments
      File-level comment, Patchset 6 (Latest):
      Saifuddin Hitawala . resolved

      Thanks for reviews!

      File gpu/command_buffer/service/shared_image/ozone_image_gl_textures_holder.cc
      Line 47, Patchset 3 (Parent):gfx::BufferPlane GetBufferPlane(viz::SharedImageFormat format,
      Colin Blundell . resolved

      Am I seeing correctly from the rest of this CL that the code actually implicitly assumes that the config here will be kY_UV, or are there things I'm missing?

      Saifuddin Hitawala

      I'm not sure it is always kY_UV here, I believe OzoneImageBacking can support other plane configs like YV12 (which we had a BufferFormat for as well).

      Colin Blundell

      The comment about the usage point is what led to me making the comment here - it seems like the one actualy consumer of the `BufferPlane` value just wouldn't work correctly with non Y_UV layouts unless I'm missing something?

      Saifuddin Hitawala

      That makes sense. I'll make the plane_index changes in a follow-up.

      File ui/ozone/common/native_pixmap_egl_binding.cc
      Line 206, Patchset 3 (Parent): size_t pixmap_plane = plane_ == gfx::BufferPlane::Y ? 0 : 1;
      Colin Blundell . resolved

      Am I seeing correctly that this is the only place where we actually process the BufferPlane value, or are there other places I'm missing?

      Saifuddin Hitawala

      Yes, this is the only place that processes BufferPlane value. I'm actually not sure why this DCHECK was there. The value here can come from GLImageProcessBackend (which is Y/UV), but also from OzoneImageGLTextureHolders which I think can be formats other than Y_UV config, like YV12.

      But yes this has the unintended side-effect of earlier always being 0/1 but now it could be 2/3 as well. I think if anything it is more correct now, but open to suggestions.

      Colin Blundell

      Hmm, I wonder if we want to separate that out into followup and preserve the current behavior in this CL by "gating" the plane index to 1 if it's >= 1? Just to ensure that this CL is a behavioral no-op.

      Saifuddin Hitawala

      Sounds good, I'll keep this behaviourally consistent here, and change it in a follow-up.

      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: I33f4993e16747bc0465c7f485de94f0d22b165c8
        Gerrit-Change-Number: 7613869
        Gerrit-PatchSet: 6
        Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
        Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
        Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
        Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
        Gerrit-Comment-Date: Fri, 27 Feb 2026 16:46:21 +0000
        satisfied_requirement
        open
        diffy

        Saifuddin Hitawala (Gerrit)

        unread,
        Feb 27, 2026, 2:50:12 PM (14 days ago) Feb 27
        to Colin Blundell, Vasiliy Telezhnikov, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org

        Saifuddin Hitawala 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: I33f4993e16747bc0465c7f485de94f0d22b165c8
        Gerrit-Change-Number: 7613869
        Gerrit-PatchSet: 6
        Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
        Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
        Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
        Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
        Gerrit-Comment-Date: Fri, 27 Feb 2026 19:50:06 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Colin Blundell (Gerrit)

        unread,
        Mar 2, 2026, 3:40:51 AM (11 days ago) Mar 2
        to Saifuddin Hitawala, Colin Blundell, Vasiliy Telezhnikov, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org
        Attention needed from Saifuddin Hitawala

        Colin Blundell voted and added 2 comments

        Votes added by Colin Blundell

        Code-Review+1

        2 comments

        Patchset-level comments
        Colin Blundell . resolved

        Thanks!

        File ui/ozone/common/native_pixmap_egl_binding.cc
        Line 206, Patchset 6 (Latest): // Gate the pixmap_plane to be either 0 or 1.
        Colin Blundell . unresolved

        nit: Expand this comment to note that we're doing this to preserve historical behavior with a TODO and bugref to eliminate it and/or verify that the flow here actually can only be Y_UV and enforce that?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Saifuddin Hitawala
        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: I33f4993e16747bc0465c7f485de94f0d22b165c8
          Gerrit-Change-Number: 7613869
          Gerrit-PatchSet: 6
          Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
          Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
          Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
          Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
          Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
          Gerrit-Comment-Date: Mon, 02 Mar 2026 08:40:32 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Saifuddin Hitawala (Gerrit)

          unread,
          Mar 2, 2026, 10:38:33 AM (11 days ago) Mar 2
          to Colin Blundell, Vasiliy Telezhnikov, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org

          Saifuddin Hitawala voted and added 2 comments

          Votes added by Saifuddin Hitawala

          Commit-Queue+2

          2 comments

          Patchset-level comments
          Saifuddin Hitawala . resolved

          Thanks for reviews!

          File ui/ozone/common/native_pixmap_egl_binding.cc
          Line 206, Patchset 6: // Gate the pixmap_plane to be either 0 or 1.
          Colin Blundell . resolved

          nit: Expand this comment to note that we're doing this to preserve historical behavior with a TODO and bugref to eliminate it and/or verify that the flow here actually can only be Y_UV and enforce that?

          Saifuddin Hitawala

          Sounds good, updated the comment with a TODO.

          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: I33f4993e16747bc0465c7f485de94f0d22b165c8
            Gerrit-Change-Number: 7613869
            Gerrit-PatchSet: 7
            Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
            Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
            Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
            Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
            Gerrit-Comment-Date: Mon, 02 Mar 2026 15:38:27 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
            satisfied_requirement
            open
            diffy

            Saifuddin Hitawala (Gerrit)

            unread,
            Mar 2, 2026, 12:53:57 PM (11 days ago) Mar 2
            to Colin Blundell, Vasiliy Telezhnikov, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org

            Saifuddin Hitawala 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: I33f4993e16747bc0465c7f485de94f0d22b165c8
            Gerrit-Change-Number: 7613869
            Gerrit-PatchSet: 7
            Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
            Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
            Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
            Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
            Gerrit-Comment-Date: Mon, 02 Mar 2026 17:53:52 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            open
            diffy

            Chromium LUCI CQ (Gerrit)

            unread,
            Mar 2, 2026, 12:57:17 PM (11 days ago) Mar 2
            to Saifuddin Hitawala, Colin Blundell, Vasiliy Telezhnikov, AyeAye, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, max+watc...@igalia.com, media-cro...@chromium.org, nickdiego+wa...@igalia.com, oshima...@chromium.org, ozone-...@chromium.org

            Chromium LUCI CQ submitted the change with unreviewed changes

            Unreviewed changes

            6 is the latest approved patch-set.
            The change was submitted with unreviewed changes in the following files:

            ```
            The name of the file: ui/ozone/common/native_pixmap_egl_binding.cc
            Insertions: 5, Deletions: 1.

            The diff is too large to show. Please review the diff.
            ```

            Change information

            Commit message:
            [ozone] Remove gfx::BufferPlane and use std::optional<int> plane_index

            Remove gfx::BufferPlane now that BufferFormats are gone, and update
            NativePixmapGLBinding and ImportNativePixmap to use std::optional<int>
            plane_index, which is unset if there is single texture (single-planar
            or external sampled multiplanar) and set only for texture per plane.
            Bug: 482199461
            Change-Id: I33f4993e16747bc0465c7f485de94f0d22b165c8
            Reviewed-by: Colin Blundell <blun...@chromium.org>
            Commit-Queue: Saifuddin Hitawala <hita...@chromium.org>
            Reviewed-by: Vasiliy Telezhnikov <vas...@chromium.org>
            Cr-Commit-Position: refs/heads/main@{#1592554}
            Files:
            • M gpu/command_buffer/service/shared_image/ozone_image_gl_textures_holder.cc
            • M media/gpu/chromeos/gl_image_processor_backend.cc
            • M ui/gfx/buffer_types.h
            • M ui/ozone/common/gl_ozone_egl.cc
            • M ui/ozone/common/gl_ozone_egl.h
            • M ui/ozone/common/native_pixmap_egl_binding.cc
            • M ui/ozone/common/native_pixmap_egl_binding.h
            • M ui/ozone/demo/skia/skia_surfaceless_gl_renderer.cc
            • M ui/ozone/demo/surfaceless_gl_renderer.cc
            • M ui/ozone/gl/native_pixmap_gl_binding_unittest.cc
            • M ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
            • M ui/ozone/platform/wayland/gpu/wayland_surface_factory.cc
            • M ui/ozone/platform/x11/x11_surface_factory.cc
            • M ui/ozone/public/gl_ozone.h
            • M ui/ozone/public/native_pixmap_gl_binding.h
            Change size: M
            Delta: 15 files changed, 59 insertions(+), 114 deletions(-)
            Branch: refs/heads/main
            Submit Requirements:
            • requirement satisfiedCode-Review: +1 by Colin Blundell, +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: I33f4993e16747bc0465c7f485de94f0d22b165c8
            Gerrit-Change-Number: 7613869
            Gerrit-PatchSet: 8
            Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
            Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
            Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
            Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
            Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
            open
            diffy
            satisfied_requirement
            Reply all
            Reply to author
            Forward
            0 new messages