Skip to content

Commit 8fbabea

Browse files
fix: cherry-pick fix thumbnail size patch for macOS (#42049)
* chore: cherry-pick fix thumbnail size patch for macOS * chore: update patches --------- Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
1 parent 4c73714 commit 8fbabea

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

patches/chromium/.patches

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,4 @@ cherry-pick-1b1f34234346.patch
137137
bindings_refactor_domdatastore.patch
138138
merge_fix_domarraybuffer_isdetached_and_comment_out_a_check.patch
139139
cherry-pick-98bcf9ef5cdd.patch
140+
cherry-pick-c1f25647c2fc.patch
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Johannes Kron <[email protected]>
3+
Date: Tue, 13 Feb 2024 23:22:49 +0000
4+
Subject: Update thumbnail size when sources are selected
5+
6+
(cherry picked from commit c1f25647c2fcbf5e5a2d574feb284bc7284b944d)
7+
8+
Bug: b/40281869
9+
Change-Id: I2d5a3954886bc6a5742321aeab415362da19c0ce
10+
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5285701
11+
Commit-Queue: Johannes Kron <[email protected]>
12+
Reviewed-by: Elad Alon <[email protected]>
13+
Cr-Commit-Position: refs/heads/main@{#1260137}
14+
15+
diff --git a/chrome/browser/media/webrtc/thumbnail_capturer_mac.mm b/chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
16+
index ebe194e9d4a77d74996cb575364a32b61ccfac52..b27f6348d338d8952716b51825586e5d29b75651 100644
17+
--- a/chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
18+
+++ b/chrome/browser/media/webrtc/thumbnail_capturer_mac.mm
19+
@@ -365,6 +365,8 @@ void API_AVAILABLE(macos(14.0))
20+
gfx::Size thumbnail_size) {
21+
DCHECK(task_runner_->RunsTasksInCurrentSequence());
22+
23+
+ thumbnail_size_ = thumbnail_size;
24+
+
25+
// The iteration is in reverse order so that the sources
26+
// first in the list are captured first. This way we make sure that the first
27+
// thumbnails in the view are captured first.

0 commit comments

Comments
 (0)