[media] Remove UseSingleNV12ForSoftwareGMB feature [chromium/src : main]

0 views
Skip to first unread message

Saifuddin Hitawala (Gerrit)

unread,
Jul 3, 2024, 4:19:06 PM (2 days ago) Jul 3
to Colin Blundell, Kyle Charbonneau, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
Attention needed from Colin Blundell and Kyle Charbonneau

Saifuddin Hitawala voted and added 1 comment

Votes added by Saifuddin Hitawala

Commit-Queue+1

1 comment

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

Please take a look.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
  • Kyle Charbonneau
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
Gerrit-Change-Number: 5675530
Gerrit-PatchSet: 2
Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
Gerrit-Attention: Colin Blundell <blun...@chromium.org>
Gerrit-Attention: Kyle Charbonneau <kyle...@chromium.org>
Gerrit-Comment-Date: Wed, 03 Jul 2024 20:19:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Kyle Charbonneau (Gerrit)

unread,
Jul 3, 2024, 4:56:58 PM (2 days ago) Jul 3
to Saifuddin Hitawala, Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
Attention needed from Colin Blundell and Saifuddin Hitawala

Kyle Charbonneau added 1 comment

File content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
Line 47, Patchset 2 (Latest): return false;
Kyle Charbonneau . unresolved

Does this only need to return false for Chrome OS? Something should document this function is only needed for Chrome OS and that when `GateNV12GMBVideoFramesOnHWSupport` is removed the function should also be removed.

Open in Gerrit

Related details

Attention is currently required from:
  • Colin Blundell
  • Saifuddin Hitawala
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
    Gerrit-Change-Number: 5675530
    Gerrit-PatchSet: 2
    Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Comment-Date: Wed, 03 Jul 2024 20:56:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Saifuddin Hitawala (Gerrit)

    unread,
    Jul 3, 2024, 5:25:52 PM (2 days ago) Jul 3
    to Vasiliy Telezhnikov, Colin Blundell, Kyle Charbonneau, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
    Attention needed from Colin Blundell, Kyle Charbonneau and Vasiliy Telezhnikov

    Saifuddin Hitawala added 1 comment

    File content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
    Kyle Charbonneau . unresolved

    Does this only need to return false for Chrome OS? Something should document this function is only needed for Chrome OS and that when `GateNV12GMBVideoFramesOnHWSupport` is removed the function should also be removed.

    Saifuddin Hitawala

    Good question! The only other platforms I can think of is Android and Cast OS. Android shouldn't reach here for multiplanar. I'm not really sure about Cast OS (and its variations). Should we just return true for Cast OS here and use SINGLE_NV12? +vasilyt@ for inputs as well.

    Also, I can definitely add a comment near the method stating we only need for ChromeOS and should be deleted.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Colin Blundell
    • Kyle Charbonneau
    • Vasiliy Telezhnikov
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
    Gerrit-Change-Number: 5675530
    Gerrit-PatchSet: 2
    Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Attention: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Comment-Date: Wed, 03 Jul 2024 21:25:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Kyle Charbonneau <kyle...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Colin Blundell (Gerrit)

    unread,
    Jul 4, 2024, 7:27:24 AM (21 hours ago) Jul 4
    to Saifuddin Hitawala, Colin Blundell, Vasiliy Telezhnikov, Kyle Charbonneau, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
    Attention needed from Kyle Charbonneau, Saifuddin Hitawala and Vasiliy Telezhnikov

    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 content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
    Kyle Charbonneau . unresolved

    Does this only need to return false for Chrome OS? Something should document this function is only needed for Chrome OS and that when `GateNV12GMBVideoFramesOnHWSupport` is removed the function should also be removed.

    Saifuddin Hitawala

    Good question! The only other platforms I can think of is Android and Cast OS. Android shouldn't reach here for multiplanar. I'm not really sure about Cast OS (and its variations). Should we just return true for Cast OS here and use SINGLE_NV12? +vasilyt@ for inputs as well.

    Also, I can definitely add a comment near the method stating we only need for ChromeOS and should be deleted.

    Colin Blundell

    CastOS [is a subset of Linux](https://source.chromium.org/chromium/chromium/src/+/main:build/config/cast.gni;l=117?q=build%2Fconfig%2Fcast.gni&ss=chromium), so we don't need to worry about that. I think that in an immediate followup to this CL we can eliminate this function and move the returning of NV12_DUAL_GMB on ChromeOS to be just above [here](https://source.chromium.org/chromium/chromium/src/+/main:content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc;l=395;drc=d311b843fa6d3cfd69f650d05cd44ace6aaa968d;bpv=1;bpt=1). Then everything will be set up for getting rid of NV12_DUAL_GMB once that killswitch can be removed.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kyle Charbonneau
    • Saifuddin Hitawala
    • Vasiliy Telezhnikov
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
    Gerrit-Change-Number: 5675530
    Gerrit-PatchSet: 2
    Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Attention: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Comment-Date: Thu, 04 Jul 2024 11:27:14 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Saifuddin Hitawala <hita...@chromium.org>
    Comment-In-Reply-To: Kyle Charbonneau <kyle...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kyle Charbonneau (Gerrit)

    unread,
    Jul 4, 2024, 9:33:11 AM (19 hours ago) Jul 4
    to Saifuddin Hitawala, Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
    Attention needed from Colin Blundell, Saifuddin Hitawala and Vasiliy Telezhnikov

    Kyle Charbonneau added 1 comment

    File content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
    Kyle Charbonneau . unresolved

    Does this only need to return false for Chrome OS? Something should document this function is only needed for Chrome OS and that when `GateNV12GMBVideoFramesOnHWSupport` is removed the function should also be removed.

    Saifuddin Hitawala

    Good question! The only other platforms I can think of is Android and Cast OS. Android shouldn't reach here for multiplanar. I'm not really sure about Cast OS (and its variations). Should we just return true for Cast OS here and use SINGLE_NV12? +vasilyt@ for inputs as well.

    Also, I can definitely add a comment near the method stating we only need for ChromeOS and should be deleted.

    Colin Blundell

    CastOS [is a subset of Linux](https://source.chromium.org/chromium/chromium/src/+/main:build/config/cast.gni;l=117?q=build%2Fconfig%2Fcast.gni&ss=chromium), so we don't need to worry about that. I think that in an immediate followup to this CL we can eliminate this function and move the returning of NV12_DUAL_GMB on ChromeOS to be just above [here](https://source.chromium.org/chromium/chromium/src/+/main:content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc;l=395;drc=d311b843fa6d3cfd69f650d05cd44ace6aaa968d;bpv=1;bpt=1). Then everything will be set up for getting rid of NV12_DUAL_GMB once that killswitch can be removed.

    Kyle Charbonneau

    I think that in an immediate followup to this CL we can eliminate this function and move the returning of NV12_DUAL_GMB on ChromeOS to be just above here. Then everything will be set up for getting rid of NV12_DUAL_GMB once that killswitch can be removed.

    Any reason not to do it in this CL? Seems equivalent to me if this only applies to Chrome OS.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Colin Blundell
    • Saifuddin Hitawala
    • Vasiliy Telezhnikov
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
    Gerrit-Change-Number: 5675530
    Gerrit-PatchSet: 2
    Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Comment-Date: Thu, 04 Jul 2024 13:32:58 +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,
    Jul 4, 2024, 10:02:00 AM (19 hours ago) Jul 4
    to Saifuddin Hitawala, Colin Blundell, Vasiliy Telezhnikov, Kyle Charbonneau, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
    Attention needed from Kyle Charbonneau, Saifuddin Hitawala and Vasiliy Telezhnikov

    Colin Blundell added 1 comment

    File content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
    Kyle Charbonneau . unresolved

    Does this only need to return false for Chrome OS? Something should document this function is only needed for Chrome OS and that when `GateNV12GMBVideoFramesOnHWSupport` is removed the function should also be removed.

    Saifuddin Hitawala

    Good question! The only other platforms I can think of is Android and Cast OS. Android shouldn't reach here for multiplanar. I'm not really sure about Cast OS (and its variations). Should we just return true for Cast OS here and use SINGLE_NV12? +vasilyt@ for inputs as well.

    Also, I can definitely add a comment near the method stating we only need for ChromeOS and should be deleted.

    Colin Blundell

    CastOS [is a subset of Linux](https://source.chromium.org/chromium/chromium/src/+/main:build/config/cast.gni;l=117?q=build%2Fconfig%2Fcast.gni&ss=chromium), so we don't need to worry about that. I think that in an immediate followup to this CL we can eliminate this function and move the returning of NV12_DUAL_GMB on ChromeOS to be just above [here](https://source.chromium.org/chromium/chromium/src/+/main:content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc;l=395;drc=d311b843fa6d3cfd69f650d05cd44ace6aaa968d;bpv=1;bpt=1). Then everything will be set up for getting rid of NV12_DUAL_GMB once that killswitch can be removed.

    Kyle Charbonneau

    I think that in an immediate followup to this CL we can eliminate this function and move the returning of NV12_DUAL_GMB on ChromeOS to be just above here. Then everything will be set up for getting rid of NV12_DUAL_GMB once that killswitch can be removed.

    Any reason not to do it in this CL? Seems equivalent to me if this only applies to Chrome OS.

    Colin Blundell

    Sure, we could do it here!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kyle Charbonneau
    • Saifuddin Hitawala
    • Vasiliy Telezhnikov
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
    Gerrit-Change-Number: 5675530
    Gerrit-PatchSet: 2
    Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Attention: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Comment-Date: Thu, 04 Jul 2024 14:01:46 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Saifuddin Hitawala (Gerrit)

    unread,
    Jul 4, 2024, 10:15:57 AM (18 hours ago) Jul 4
    to Colin Blundell, Vasiliy Telezhnikov, Kyle Charbonneau, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
    Attention needed from Kyle Charbonneau and Vasiliy Telezhnikov

    Saifuddin Hitawala added 2 comments

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

    Addressed feedback, PTAL.

    File content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
    Line 47, Patchset 2: return false;
    Kyle Charbonneau . resolved

    Does this only need to return false for Chrome OS? Something should document this function is only needed for Chrome OS and that when `GateNV12GMBVideoFramesOnHWSupport` is removed the function should also be removed.

    Saifuddin Hitawala

    Good question! The only other platforms I can think of is Android and Cast OS. Android shouldn't reach here for multiplanar. I'm not really sure about Cast OS (and its variations). Should we just return true for Cast OS here and use SINGLE_NV12? +vasilyt@ for inputs as well.

    Also, I can definitely add a comment near the method stating we only need for ChromeOS and should be deleted.

    Colin Blundell

    CastOS [is a subset of Linux](https://source.chromium.org/chromium/chromium/src/+/main:build/config/cast.gni;l=117?q=build%2Fconfig%2Fcast.gni&ss=chromium), so we don't need to worry about that. I think that in an immediate followup to this CL we can eliminate this function and move the returning of NV12_DUAL_GMB on ChromeOS to be just above [here](https://source.chromium.org/chromium/chromium/src/+/main:content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc;l=395;drc=d311b843fa6d3cfd69f650d05cd44ace6aaa968d;bpv=1;bpt=1). Then everything will be set up for getting rid of NV12_DUAL_GMB once that killswitch can be removed.

    Kyle Charbonneau

    I think that in an immediate followup to this CL we can eliminate this function and move the returning of NV12_DUAL_GMB on ChromeOS to be just above here. Then everything will be set up for getting rid of NV12_DUAL_GMB once that killswitch can be removed.

    Any reason not to do it in this CL? Seems equivalent to me if this only applies to Chrome OS.

    Saifuddin Hitawala

    Thanks for clarifying! I didn't know CastOS was under Linux. I've updated to remove the method entirely and return DualNV12 for ChromeOS if feature is disabled.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kyle Charbonneau
    • Vasiliy Telezhnikov
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
    Gerrit-Change-Number: 5675530
    Gerrit-PatchSet: 3
    Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Comment-Date: Thu, 04 Jul 2024 14:15:46 +0000
    satisfied_requirement
    open
    diffy

    Kyle Charbonneau (Gerrit)

    unread,
    Jul 4, 2024, 11:24:53 AM (17 hours ago) Jul 4
    to Saifuddin Hitawala, Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
    Attention needed from Saifuddin Hitawala and Vasiliy Telezhnikov

    Kyle Charbonneau voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Saifuddin Hitawala
    • Vasiliy Telezhnikov
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
    Gerrit-Change-Number: 5675530
    Gerrit-PatchSet: 3
    Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
    Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
    Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
    Gerrit-Comment-Date: Thu, 04 Jul 2024 15:24:44 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Colin Blundell (Gerrit)

    unread,
    Jul 4, 2024, 11:30:12 AM (17 hours ago) Jul 4
    to Saifuddin Hitawala, Kyle Charbonneau, Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
    Attention needed from Saifuddin Hitawala and Vasiliy Telezhnikov

    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 content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
    Line 373, Patchset 3 (Latest): // Use NV12_SINGLE_GMB for Mac, Windows, Linux and CastOS platforms.
    Colin Blundell . unresolved

    nit: Looking at the structure of this code now, I think it's actually significantly more clear to just do another #if-#else here rather than adding the "else if" above:

    #if BUILDFLAG(IS_CHROMEOS)
    return OutputFormat::NV12_DUAL_GMB;
    #else
    return OutputFormat::NV12_SINGLE_GMB;
    #endif

    Apologies for the churn!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Saifuddin Hitawala
    • Vasiliy Telezhnikov
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
      Gerrit-Change-Number: 5675530
      Gerrit-PatchSet: 3
      Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
      Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Attention: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Comment-Date: Thu, 04 Jul 2024 15:30:02 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Saifuddin Hitawala (Gerrit)

      unread,
      Jul 4, 2024, 12:39:07 PM (16 hours ago) Jul 4
      to Kyle Charbonneau, Colin Blundell, Vasiliy Telezhnikov, Chromium LUCI CQ, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org
      Attention needed from Vasiliy Telezhnikov

      Saifuddin Hitawala voted and added 2 comments

      Votes added by Saifuddin Hitawala

      Commit-Queue+2

      2 comments

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

      Thanks for reviewing!

      File content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
      Line 373, Patchset 3: // Use NV12_SINGLE_GMB for Mac, Windows, Linux and CastOS platforms.
      Colin Blundell . resolved

      nit: Looking at the structure of this code now, I think it's actually significantly more clear to just do another #if-#else here rather than adding the "else if" above:

      #if BUILDFLAG(IS_CHROMEOS)
      return OutputFormat::NV12_DUAL_GMB;
      #else
      return OutputFormat::NV12_SINGLE_GMB;
      #endif

      Apologies for the churn!

      Saifuddin Hitawala

      That sounds good, updated.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Vasiliy Telezhnikov
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Review
      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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
      Gerrit-Change-Number: 5675530
      Gerrit-PatchSet: 5
      Gerrit-Owner: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Kyle Charbonneau <kyle...@chromium.org>
      Gerrit-Reviewer: Saifuddin Hitawala <hita...@chromium.org>
      Gerrit-Reviewer: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Attention: Vasiliy Telezhnikov <vas...@chromium.org>
      Gerrit-Comment-Date: Thu, 04 Jul 2024 16:38:57 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jul 4, 2024, 12:49:55 PM (16 hours ago) Jul 4
      to Saifuddin Hitawala, Kyle Charbonneau, Colin Blundell, Vasiliy Telezhnikov, chromium...@chromium.org, chromeos-gfx-...@google.com, feature-me...@chromium.org, media-cro...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

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

      ```
      The name of the file: content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
      Insertions: 6, Deletions: 4.

      @@ -362,16 +362,18 @@
      if (base::FeatureList::IsEnabled(
      features::kGateNV12GMBVideoFramesOnHWSupport)) {
      return OutputFormat::UNDEFINED;
      - } else if (capabilities.texture_rg) {
      - // TODO(crbug.com/40283225): NV12_DUAL_GMB is used on ChromeOS only if above
      - // feature is disabled. Remove this codepath once above feature is launched.
      - return OutputFormat::NV12_DUAL_GMB;
      }
      #endif

      if (capabilities.texture_rg) {
      +#if BUILDFLAG(IS_CHROMEOS)
      + // TODO(crbug.com/40283225): NV12_DUAL_GMB is used on ChromeOS only if above
      + // feature is disabled. Remove this codepath once above feature is launched.
      + return OutputFormat::NV12_DUAL_GMB;
      +#else

      // Use NV12_SINGLE_GMB for Mac, Windows, Linux and CastOS platforms.
           return OutputFormat::NV12_SINGLE_GMB;
      +#endif
      }
      return OutputFormat::UNDEFINED;
      #endif // BUILDFLAG(IS_FUCHSIA)
      ```

      Change information

      Commit message:
      [media] Remove UseSingleNV12ForSoftwareGMB feature

      This feature is really not needed as for ChromeOS we fallback to
      VideoResourceUpdater with the GateNV12GMBVideoFramesOnHWSupport
      feature.

      Also remove the corresponding UseSingleNV12 method and simplify
      to return the correct OutputFormat.
      Bug: 332564976
      Change-Id: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
      Reviewed-by: Colin Blundell <blun...@chromium.org>
      Reviewed-by: Kyle Charbonneau <kyle...@chromium.org>
      Commit-Queue: Saifuddin Hitawala <hita...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1323400}
      Files:
      • M content/renderer/media/gpu/gpu_video_accelerator_factories_impl.cc
      Change size: S
      Delta: 1 file changed, 8 insertions(+), 22 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Colin Blundell, +1 by Kyle Charbonneau
      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: Icc13bd3f19fd08cb0e2ba713768ceaca2af994a6
      Gerrit-Change-Number: 5675530
      Gerrit-PatchSet: 6
      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: Kyle Charbonneau <kyle...@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