| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[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
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[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
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |