fix: skip the first two invalid updates when SCK is enabled (#41340)
This commit is contained in:
parent
0dad99561b
commit
7d6a754d47
3 changed files with 18 additions and 9 deletions
|
@ -305,7 +305,8 @@ void DesktopCapturer::StartHandling(bool capture_window,
|
|||
window_capturer_->SetThumbnailSize(thumbnail_size);
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
window_capturer_->skip_next_refresh_ =
|
||||
ShouldUseThumbnailCapturerMac(DesktopMediaList::Type::kWindow);
|
||||
ShouldUseThumbnailCapturerMac(DesktopMediaList::Type::kWindow) ? 2
|
||||
: 0;
|
||||
#endif
|
||||
|
||||
OnceCallback update_callback = base::BindOnce(
|
||||
|
@ -334,7 +335,8 @@ void DesktopCapturer::StartHandling(bool capture_window,
|
|||
screen_capturer_->SetThumbnailSize(thumbnail_size);
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
screen_capturer_->skip_next_refresh_ =
|
||||
ShouldUseThumbnailCapturerMac(DesktopMediaList::Type::kScreen);
|
||||
ShouldUseThumbnailCapturerMac(DesktopMediaList::Type::kScreen) ? 2
|
||||
: 0;
|
||||
#endif
|
||||
|
||||
OnceCallback update_callback = base::BindOnce(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue