This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Commit 62cf082
committed
Bug 1703522. Allow IOSurface capture by default. r=pehrsons
This cuts the time spent in CaptureFrame for a buffer size of 3072x1920
from ~80ms to ~22ms for me. It makes it so that we use the IOSurfaces
provided to the CGDisplayStreamCreate handler instead of calling
CGDisplayCreateImage.
It was enable by default in Chromium in 2018 via
https://source.chromium.org/chromium/chromium/src/+/09cd5826e743af9dbcbde8ab36f73f5e0bd55f6c
Differential Revision: https://phabricator.services.mozilla.com/D1572731 parent 7669c81 commit 62cf082
2 files changed
Lines changed: 12 additions & 0 deletions
File tree
- dom/media/systemservices/video_engine
- modules/libpref/init
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
338 | 345 | | |
339 | 346 | | |
340 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10081 | 10081 | | |
10082 | 10082 | | |
10083 | 10083 | | |
| 10084 | + | |
| 10085 | + | |
| 10086 | + | |
| 10087 | + | |
| 10088 | + | |
10084 | 10089 | | |
10085 | 10090 | | |
10086 | 10091 | | |
| |||
0 commit comments