fix: osr stutter fix backport for electron. (#46650)
* fix: osr stutter fix backport for electron. * nit: chromium upstream patch link
This commit is contained in:
parent
3ad87787f8
commit
ac2c0c76fe
3 changed files with 296 additions and 0 deletions
|
@ -28,6 +28,11 @@ OffScreenVideoConsumer::OffScreenVideoConsumer(
|
|||
video_capturer_->SetMinSizeChangePeriod(base::TimeDelta());
|
||||
video_capturer_->SetFormat(media::PIXEL_FORMAT_ARGB);
|
||||
|
||||
// https://crrev.org/c/6438681
|
||||
// Disable capturer's animation lock-in feature for offscreen capture to
|
||||
// avoid output stutter.
|
||||
video_capturer_->SetAnimationFpsLockIn(false, 1);
|
||||
|
||||
// Previous design of OSR try to set the resolution constraint to match the
|
||||
// view's size. It is actually not necessary and creates faulty textures
|
||||
// when the window/view's size changes frequently. The constraint may not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue