Skip to content

Commit 2e86677

Browse files
committed
Bug 1918268 - updated libwebrtc patch stack
UltraBlame original commit: a1a1eec4c59d10eb6cecc9fced1df33a818cb978
1 parent 2d9c243 commit 2e86677

File tree

8 files changed

+12998
-0
lines changed

8 files changed

+12998
-0
lines changed

third_party/libwebrtc/moz-patch-stack/0123.patch

+6,141
Large diffs are not rendered by default.

third_party/libwebrtc/moz-patch-stack/0124.patch

+754
Large diffs are not rendered by default.

third_party/libwebrtc/moz-patch-stack/0125.patch

+2,445
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,385 @@
1+
From
2+
:
3+
Andreas
4+
Pehrson
5+
<
6+
apehrson
7+
mozilla
8+
.
9+
com
10+
>
11+
Date
12+
:
13+
Thu
14+
12
15+
Sep
16+
2024
17+
22
18+
:
19+
36
20+
:
21+
00
22+
+
23+
0000
24+
Subject
25+
:
26+
Bug
27+
1918096
28+
-
29+
In
30+
ScreenCapturerSck
31+
skip
32+
some
33+
processing
34+
when
35+
possible
36+
.
37+
r
38+
=
39+
webrtc
40+
-
41+
reviewers
42+
ng
43+
No
44+
need
45+
to
46+
update
47+
the
48+
last
49+
frame
50+
unless
51+
it
52+
has
53+
changed
54+
.
55+
Differential
56+
Revision
57+
:
58+
https
59+
:
60+
/
61+
/
62+
phabricator
63+
.
64+
services
65+
.
66+
mozilla
67+
.
68+
com
69+
/
70+
D221942
71+
Mercurial
72+
Revision
73+
:
74+
https
75+
:
76+
/
77+
/
78+
hg
79+
.
80+
mozilla
81+
.
82+
org
83+
/
84+
mozilla
85+
-
86+
central
87+
/
88+
rev
89+
/
90+
8d52f2fd575479da72508033b3a2151906e2bf19
91+
-
92+
-
93+
-
94+
.
95+
.
96+
.
97+
/
98+
desktop_capture
99+
/
100+
mac
101+
/
102+
screen_capturer_sck
103+
.
104+
mm
105+
|
106+
17
107+
+
108+
+
109+
+
110+
+
111+
+
112+
+
113+
+
114+
+
115+
+
116+
+
117+
+
118+
+
119+
+
120+
+
121+
+
122+
+
123+
+
124+
1
125+
file
126+
changed
127+
17
128+
insertions
129+
(
130+
+
131+
)
132+
diff
133+
-
134+
-
135+
git
136+
a
137+
/
138+
modules
139+
/
140+
desktop_capture
141+
/
142+
mac
143+
/
144+
screen_capturer_sck
145+
.
146+
mm
147+
b
148+
/
149+
modules
150+
/
151+
desktop_capture
152+
/
153+
mac
154+
/
155+
screen_capturer_sck
156+
.
157+
mm
158+
index
159+
19c887d435
160+
.
161+
.
162+
482501e2d9
163+
100644
164+
-
165+
-
166+
-
167+
a
168+
/
169+
modules
170+
/
171+
desktop_capture
172+
/
173+
mac
174+
/
175+
screen_capturer_sck
176+
.
177+
mm
178+
+
179+
+
180+
+
181+
b
182+
/
183+
modules
184+
/
185+
desktop_capture
186+
/
187+
mac
188+
/
189+
screen_capturer_sck
190+
.
191+
mm
192+
-
193+
511
194+
6
195+
+
196+
511
197+
7
198+
void
199+
ScreenCapturerSck
200+
:
201+
:
202+
OnNewIOSurface
203+
(
204+
IOSurfaceRef
205+
io_surface
206+
NSDictionary
207+
*
208+
at
209+
CGRect
210+
contentRect
211+
=
212+
{
213+
}
214+
;
215+
CGRect
216+
boundingRect
217+
=
218+
{
219+
}
220+
;
221+
CGRect
222+
overlayRect
223+
=
224+
{
225+
}
226+
;
227+
+
228+
SCFrameStatus
229+
status
230+
=
231+
SCFrameStatusStopped
232+
;
233+
const
234+
auto
235+
*
236+
dirty_rects
237+
=
238+
(
239+
NSArray
240+
*
241+
)
242+
attachment
243+
[
244+
SCStreamFrameInfoDirtyRects
245+
]
246+
;
247+
if
248+
(
249+
auto
250+
factor
251+
=
252+
(
253+
NSNumber
254+
*
255+
)
256+
attachment
257+
[
258+
SCStreamFrameInfoScaleFactor
259+
]
260+
)
261+
{
262+
scaleFactor
263+
=
264+
[
265+
factor
266+
floatValue
267+
]
268+
;
269+
-
270+
536
271+
6
272+
+
273+
537
274+
22
275+
void
276+
ScreenCapturerSck
277+
:
278+
:
279+
OnNewIOSurface
280+
(
281+
IOSurfaceRef
282+
io_surface
283+
NSDictionary
284+
*
285+
at
286+
}
287+
}
288+
+
289+
if
290+
(
291+
auto
292+
statusNr
293+
=
294+
(
295+
NSNumber
296+
*
297+
)
298+
attachment
299+
[
300+
SCStreamFrameInfoStatus
301+
]
302+
)
303+
{
304+
+
305+
status
306+
=
307+
(
308+
SCFrameStatus
309+
)
310+
[
311+
statusNr
312+
integerValue
313+
]
314+
;
315+
+
316+
}
317+
+
318+
+
319+
switch
320+
(
321+
status
322+
)
323+
{
324+
+
325+
case
326+
SCFrameStatusBlank
327+
:
328+
+
329+
case
330+
SCFrameStatusIdle
331+
:
332+
+
333+
case
334+
SCFrameStatusSuspended
335+
:
336+
+
337+
case
338+
SCFrameStatusStopped
339+
:
340+
+
341+
/
342+
/
343+
No
344+
new
345+
frame
346+
.
347+
Ignore
348+
.
349+
+
350+
return
351+
;
352+
+
353+
case
354+
SCFrameStatusComplete
355+
:
356+
+
357+
case
358+
SCFrameStatusStarted
359+
:
360+
+
361+
/
362+
/
363+
New
364+
frame
365+
.
366+
Process
367+
it
368+
.
369+
+
370+
break
371+
;
372+
+
373+
}
374+
auto
375+
imgBoundingRect
376+
=
377+
CGRectMake
378+
(
379+
scaleFactor
380+
*
381+
boundingRect
382+
.
383+
origin
384+
.
385+
x

0 commit comments

Comments
 (0)