Skip to content

Commit

Permalink
Bug 1918268 - updated libwebrtc patch stack
Browse files Browse the repository at this point in the history
UltraBlame original commit: a1a1eec4c59d10eb6cecc9fced1df33a818cb978
  • Loading branch information
marco-c committed Oct 1, 2024
1 parent 9f0147c commit 654deaa
Show file tree
Hide file tree
Showing 8 changed files with 12,998 additions and 0 deletions.
6,141 changes: 6,141 additions & 0 deletions third_party/libwebrtc/moz-patch-stack/0123.patch

Large diffs are not rendered by default.

754 changes: 754 additions & 0 deletions third_party/libwebrtc/moz-patch-stack/0124.patch

Large diffs are not rendered by default.

2,445 changes: 2,445 additions & 0 deletions third_party/libwebrtc/moz-patch-stack/0125.patch

Large diffs are not rendered by default.

385 changes: 385 additions & 0 deletions third_party/libwebrtc/moz-patch-stack/0126.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,385 @@
From
:
Andreas
Pehrson
<
apehrson
mozilla
.
com
>
Date
:
Thu
12
Sep
2024
22
:
36
:
00
+
0000
Subject
:
Bug
1918096
-
In
ScreenCapturerSck
skip
some
processing
when
possible
.
r
=
webrtc
-
reviewers
ng
No
need
to
update
the
last
frame
unless
it
has
changed
.
Differential
Revision
:
https
:
/
/
phabricator
.
services
.
mozilla
.
com
/
D221942
Mercurial
Revision
:
https
:
/
/
hg
.
mozilla
.
org
/
mozilla
-
central
/
rev
/
8d52f2fd575479da72508033b3a2151906e2bf19
-
-
-
.
.
.
/
desktop_capture
/
mac
/
screen_capturer_sck
.
mm
|
17
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
1
file
changed
17
insertions
(
+
)
diff
-
-
git
a
/
modules
/
desktop_capture
/
mac
/
screen_capturer_sck
.
mm
b
/
modules
/
desktop_capture
/
mac
/
screen_capturer_sck
.
mm
index
19c887d435
.
.
482501e2d9
100644
-
-
-
a
/
modules
/
desktop_capture
/
mac
/
screen_capturer_sck
.
mm
+
+
+
b
/
modules
/
desktop_capture
/
mac
/
screen_capturer_sck
.
mm
-
511
6
+
511
7
void
ScreenCapturerSck
:
:
OnNewIOSurface
(
IOSurfaceRef
io_surface
NSDictionary
*
at
CGRect
contentRect
=
{
}
;
CGRect
boundingRect
=
{
}
;
CGRect
overlayRect
=
{
}
;
+
SCFrameStatus
status
=
SCFrameStatusStopped
;
const
auto
*
dirty_rects
=
(
NSArray
*
)
attachment
[
SCStreamFrameInfoDirtyRects
]
;
if
(
auto
factor
=
(
NSNumber
*
)
attachment
[
SCStreamFrameInfoScaleFactor
]
)
{
scaleFactor
=
[
factor
floatValue
]
;
-
536
6
+
537
22
void
ScreenCapturerSck
:
:
OnNewIOSurface
(
IOSurfaceRef
io_surface
NSDictionary
*
at
}
}
+
if
(
auto
statusNr
=
(
NSNumber
*
)
attachment
[
SCStreamFrameInfoStatus
]
)
{
+
status
=
(
SCFrameStatus
)
[
statusNr
integerValue
]
;
+
}
+
+
switch
(
status
)
{
+
case
SCFrameStatusBlank
:
+
case
SCFrameStatusIdle
:
+
case
SCFrameStatusSuspended
:
+
case
SCFrameStatusStopped
:
+
/
/
No
new
frame
.
Ignore
.
+
return
;
+
case
SCFrameStatusComplete
:
+
case
SCFrameStatusStarted
:
+
/
/
New
frame
.
Process
it
.
+
break
;
+
}
auto
imgBoundingRect
=
CGRectMake
(
scaleFactor
*
boundingRect
.
origin
.
x
Loading

0 comments on commit 654deaa

Please sign in to comment.