[Blink] Remove redundant check in RtcVideoEncoder [chromium/src : main]

0 views
Skip to first unread message

Kentaro Hara (Gerrit)

unread,
Jan 5, 2026, 1:58:41 PM (7 days ago) Jan 5
to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, Hirokazu Honda, blink-...@chromium.org, kinuko...@chromium.org, video-networking...@google.com
Attention needed from Colin Blundell

Kentaro Hara voted Code-Review+1

Code-Review+1
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 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: I67e96194eb24a98459d0e52ac9109d3ab5fb45fd
Gerrit-Change-Number: 7365179
Gerrit-PatchSet: 2
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Hirokazu Honda <hi...@chromium.org>
Gerrit-Attention: Colin Blundell <blun...@chromium.org>
Gerrit-Comment-Date: Mon, 05 Jan 2026 18:58:35 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Jan 6, 2026, 3:26:54 AM (7 days ago) Jan 6
to Colin Blundell, Kentaro Hara, chromium...@chromium.org, Hirokazu Honda, blink-...@chromium.org, kinuko...@chromium.org, video-networking...@google.com

Chromium LUCI CQ submitted the change

Unreviewed changes

2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
[Blink] Remove redundant check in RtcVideoEncoder

Following the elimination of GpuMemoryBuffer, the only way to create a
VideoFrame with STORAGE_MAPPABLE_SHARED_IMAGE is via [1] or by wrapping
a VideoFrame created via [1]. This will result in
VideoFrame::HasSharedImage() returning true due to [2][3][4]. Hence, the
first part of the conditional here is now unneeded: if the
storage type is STORAGE_MAPPABLE_SHARED_IMAGE then HasSharedImage() will
be guaranteed to be true, so we can just check IsSharedImage() rather
than having the two checks or'd together.

[1] https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_frame.cc;l=390?q=WrapMappableSha&ss=chromium
[2] https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_frame.cc;l=397?q=WrapMappableSha&ss=chromium
[3] https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_frame.cc;l=484?q=WrapMappableSha&ss=chromium
[4] https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_frame.cc;l=1166-1167;drc=56535b80c32d3a618b8fc8cfd7b1afdd3862e1b2;bpv=1;bpt=1
Bug: 404905709
Change-Id: I67e96194eb24a98459d0e52ac9109d3ab5fb45fd
Commit-Queue: Colin Blundell <blun...@chromium.org>
Reviewed-by: Kentaro Hara <har...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1564835}
Files:
  • M third_party/blink/renderer/platform/peerconnection/rtc_video_encoder.cc
Change size: XS
Delta: 1 file changed, 1 insertion(+), 3 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Kentaro Hara
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: I67e96194eb24a98459d0e52ac9109d3ab5fb45fd
Gerrit-Change-Number: 7365179
Gerrit-PatchSet: 4
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: Kentaro Hara <har...@chromium.org>
open
diffy
satisfied_requirement

Mingjing Zhang (Gerrit)

unread,
Jan 9, 2026, 11:19:07 AM (3 days ago) Jan 9
to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, Hirokazu Honda, blink-...@chromium.org, kinuko...@chromium.org, video-networking...@google.com
Attention needed from Colin Blundell

Mingjing Zhang voted and added 1 comment

Votes added by Mingjing Zhang

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Mingjing Zhang . resolved

LGTM

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 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: I53784c5b26e301beb642f92ea8b83cd610d8553d
Gerrit-Change-Number: 7416349
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
Gerrit-CC: Hirokazu Honda <hi...@chromium.org>
Gerrit-Attention: Colin Blundell <blun...@chromium.org>
Gerrit-Comment-Date: Fri, 09 Jan 2026 16:19:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Colin Blundell (Gerrit)

unread,
10:13 AM (10 hours ago) 10:13 AM
to Colin Blundell, Kentaro Hara, Mingjing Zhang, Chromium LUCI CQ, chromium...@chromium.org, Hirokazu Honda, blink-...@chromium.org, kinuko...@chromium.org, video-networking...@google.com
Attention needed from Kentaro Hara

Colin Blundell added 1 comment

Patchset-level comments
Colin Blundell . resolved

Thanks! +Kentaro for OWNERS

Open in Gerrit

Related details

Attention is currently required from:
  • Kentaro Hara
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: I53784c5b26e301beb642f92ea8b83cd610d8553d
Gerrit-Change-Number: 7416349
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
Gerrit-CC: Hirokazu Honda <hi...@chromium.org>
Gerrit-Attention: Kentaro Hara <har...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 15:13:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kentaro Hara (Gerrit)

unread,
10:42 AM (10 hours ago) 10:42 AM
to Colin Blundell, Mingjing Zhang, Chromium LUCI CQ, chromium...@chromium.org, Hirokazu Honda, blink-...@chromium.org, kinuko...@chromium.org, video-networking...@google.com
Attention needed from Colin Blundell

Kentaro Hara voted Code-Review+1

Code-Review+1
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: I53784c5b26e301beb642f92ea8b83cd610d8553d
Gerrit-Change-Number: 7416349
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
Gerrit-CC: Hirokazu Honda <hi...@chromium.org>
Gerrit-Attention: Colin Blundell <blun...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 15:41:39 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Colin Blundell (Gerrit)

unread,
11:05 AM (9 hours ago) 11:05 AM
to Colin Blundell, Kentaro Hara, Mingjing Zhang, Chromium LUCI CQ, chromium...@chromium.org, Hirokazu Honda, blink-...@chromium.org, kinuko...@chromium.org, video-networking...@google.com

Colin Blundell voted and added 1 comment

Votes added by Colin Blundell

Commit-Queue+2

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Colin Blundell . resolved

Thanks!

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: I53784c5b26e301beb642f92ea8b83cd610d8553d
Gerrit-Change-Number: 7416349
Gerrit-PatchSet: 1
Gerrit-Owner: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Kentaro Hara <har...@chromium.org>
Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
Gerrit-CC: Hirokazu Honda <hi...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 16:05:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
12:07 PM (8 hours ago) 12:07 PM
to Colin Blundell, Kentaro Hara, Mingjing Zhang, chromium...@chromium.org, Hirokazu Honda, blink-...@chromium.org, kinuko...@chromium.org, video-networking...@google.com

Chromium LUCI CQ submitted the change

Change information

Commit message:
[Blink] Remove redundant check in RtcVideoEncoder

HasNativeMappableSharedImage() is true iff

(HasMappableSharedImage() && !SI is shmem) [1]

Thus, !HasNativeMappableSharedImage() is

(!HasMappableSharedImage() || SI is shmem)

Since this !HasNativeMappableSharedImage() check is &&'d with a direct
!HasMappableSharedImage() check, the !HasNativeMappableSharedImage()
check itself is redundant.

[1] https://source.chromium.org/chromium/chromium/src/+/main:media/base/video_frame.cc;l=1179-1182?q=HasNativeMappable&ss=chromium
Bug: 404905709
Change-Id: I53784c5b26e301beb642f92ea8b83cd610d8553d
Reviewed-by: Kentaro Hara <har...@chromium.org>
Reviewed-by: Mingjing Zhang <mjz...@chromium.org>
Commit-Queue: Colin Blundell <blun...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1567835}
Files:
  • M third_party/blink/renderer/platform/peerconnection/rtc_video_encoder.cc
Change size: XS
Delta: 1 file changed, 3 insertions(+), 3 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Kentaro Hara, +1 by Mingjing Zhang
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: I53784c5b26e301beb642f92ea8b83cd610d8553d
Gerrit-Change-Number: 7416349
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: Kentaro Hara <har...@chromium.org>
Gerrit-Reviewer: Mingjing Zhang <mjz...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages