Commit Graph

780 Commits

Author SHA1 Message Date
Dan Minor
3899a4a894 Bug 1494316 - Update generated json and moz.build files; r=dmajor
Depends on D7102

Differential Revision: https://phabricator.services.mozilla.com/D7104

--HG--
extra : moz-landing-system : lando
2018-09-27 17:39:12 +00:00
Dan Minor
014d677bb3 Bug 1494316 - Set enable_iterator_debugging; r=dmajor
This flag is not required and causes problems with mingw builds.

Differential Revision: https://phabricator.services.mozilla.com/D7101

--HG--
extra : moz-landing-system : lando
2018-09-27 17:41:34 +00:00
Jim Chen
1129b28317 Bug 1480834 - 1. Add WebRTC config for x86_64 on Android; r=dminor
Add GN config files and updated moz.build files for building WebRTC on
Android x86_64.

Differential Revision: https://phabricator.services.mozilla.com/D4479
2018-09-13 12:09:25 -04:00
Dan Minor
9601e808c9 Bug 1487419 - Save current desktop configuration in ScreenCapturerMac::Init; r=pehrsons
Summary:
The fix for Bug 1409018 accidentally removed saving the current desktop
configuration during Init() which causes it to not be set when a different
screen is selected, meaning that regardless of the choice made, only the
first screen is captured.

Reviewers: pehrsons

Tags: #secure-revision

Bug #: 1487419

Differential Revision: https://phabricator.services.mozilla.com/D5062

--HG--
extra : rebase_source : bb4f9a0f4e06dfbd9730b7af4a0748749d72c3da
2018-09-05 13:55:27 -04:00
Nathan Froyd
0c3b82172f Bug 1486028 - update webrtc config headers to work with aarch64 windows; r=jesup 2018-08-28 20:23:04 -04:00
Makoto Kato
cac0bc6570 Bug 1434589 - Part 2. Update moz.build. r=chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D3608

--HG--
extra : moz-landing-system : lando
2018-08-22 19:45:19 +00:00
Dan Minor
6fa2ea51b7 Bug 1371485 - Fix gflags root; r=chmanchester
Summary:
I think the webrtc.org gtests are the only user of gflags in tree. We can switch
over to using gn to build this when we start building the tests using gn,
which is Bug 1430779.

Tags: #secure-revision

Bug #: 1371485

Differential Revision: https://phabricator.services.mozilla.com/D1802

--HG--
extra : rebase_source : ba496d6f262d3679031f0b933a80ce3e2a2236a5
2018-06-22 14:25:31 -04:00
Dan Minor
d1d877cbe8 Bug 1371485 - Remove unnecessary gyp files from webrtc; r=chmanchester
Tags: #secure-revision

Bug #: 1371485

Differential Revision: https://phabricator.services.mozilla.com/D1799

--HG--
extra : rebase_source : 21f5238db3fe517aca5a19344847a883a277e6b6
2018-06-22 14:57:17 -04:00
Dan Minor
f92a35478e Bug 1371485 - Remove webrtc copy of gyp; r=chmanchester
Tags: #secure-revision

Bug #: 1371485

Differential Revision: https://phabricator.services.mozilla.com/D1798

--HG--
extra : rebase_source : d3abc38a88e9f3a5543f2bb46726f47a75115785
2018-06-21 14:42:08 -04:00
Nico Grunbaum
2dc9bc2b7c Bug 1456101 - ensure X11 DesktopCapture module is created on main thread r=dminor
MozReview-Commit-ID: 8lP03135ttK

--HG--
extra : rebase_source : 0ba001a933637e2ef76810d2e85a71b12dd49017
2018-06-04 22:03:14 -07:00
Chris Manchester
5d3eea5c07 Bug 1467319 - Re-generate gn moz.build files. r=mshal
MozReview-Commit-ID: Bo7TsDT9pZv

--HG--
extra : rebase_source : 2ad5dba380b3484b8cc01513aff7dfc6930ca639
2018-06-06 17:39:51 -07:00
Chris Manchester
707810c078 Bug 1466254 - Re-generate gn moz.build files. r=mshal
MozReview-Commit-ID: IyG7d8GhqEC

--HG--
extra : rebase_source : 9126b11cad87029125f2f9d9d7d678018f3ae68d
2018-06-06 17:17:37 -07:00
Dan Minor
907222260a Bug 1409018 - Defer RegisterRefreshAndMoveHandlers call; r=pehrsons
This defers the call to register the refresh and move handlers to the
CaptureFrame() call so that they will be registered on the ScreenCapture
thread.

This also calls CFRunLoopInMode to process any pending sources in the
run loop corresponding to the ScreenCapture thread so that the
refresh and move notifications are received.

MozReview-Commit-ID: G4aEchnGuUz

--HG--
extra : rebase_source : b74d95015cccb2efa64a711a1824adb379531ca2
2018-06-05 08:13:01 -04:00
Dan Minor
33e28e7269 Bug 1409018 - Remove ifdefs for OS X 10.7 from webrtc; r=pehrsons
MozReview-Commit-ID: Ahc7KPlY8uW

--HG--
extra : rebase_source : e1038ef18daf2f6e680a2c54aeaedcb179eaf671
2018-06-05 08:11:56 -04:00
Nils Ohlmeier [:drno]
e4164ef1b0 Bug 1467938 - Fix out-of-bounds memory access in WebRTC VP9 Missing Frame Processing. r=ng
--HG--
extra : histedit_source : f18e4e92f3cdb17b80d092b13dc370386119d437%2C06a923f89cefae172e29d0af18800c401394f940
2018-06-08 19:49:40 -07:00
Mike Hommey
cf60ab0a62 Bug 1466054 - Run mach build-backend -b GnMozbuildWriter. r=froydnj
This refreshes the gn-generated moz.builds with the change from previous
commit. Somehow, this does unrelated changes, there must be something
funky in the gn-moz.build-generator.

--HG--
extra : rebase_source : 7e1a9d75f7a80c0981b2534e4959ada6c611bae2
2018-06-01 17:22:28 +09:00
Jan Beich
b191e43264 Bug 1464680 - Add more WebRTC's gn-configs for BSDs on ARM. r=chmanchester
Based on output from FreeBSD armv7/aarch64.

MozReview-Commit-ID: L7mKj6FIGS5

--HG--
extra : rebase_source : 82729a252c941d4011fc764372fc4943e0a6dd9a
2018-05-27 13:49:33 +00:00
arthur.iakab
fb18cb09bd Merge mozilla inbound to central a=merge 2018-05-31 01:05:10 +03:00
Cameron Kaiser
af336fb099 Bug 1465274 - Add ppc64 to webrtc, regenerate moz.build to remove SSE2 dependency for Linux. r=froydnj
--HG--
extra : source : 3a2d42c1c0d47e11a1efc666cce491f3064469ef
2018-05-27 22:21:07 -07:00
Ryan VanderMeulen
7978cab95f Backed out changeset 3a2d42c1c0d4 for landing with the wrong bug number in the commit message. 2018-05-30 12:44:07 -04:00
Dan Minor
50a3ab6cd4 Bug 1450658 - Should bring window to front when screen-sharing a window; r=pehrsons
This adds a FocusOnSelectedSource method to PCameras and uses it to focus the
selected window while window sharing. We can't just focus the window as soon as
it is shared because we have a live preview in the getUserMedia permissions
prompt which would cause the prompt to lose focus. Instead, this only focuses the
window when the sharing is not done from a chrome context.


MozReview-Commit-ID: 5jre75E3JLi

--HG--
extra : rebase_source : 5f5154fc9fc7590cc02eb25146e5bc20b2243fa3
2018-05-08 15:55:36 -04:00
Dorel Luca
8e1a0ee1c6 Backed out changeset c13ca75c9bcb (bug 1450658) for Browser-Chrome failures on browser/base/content/test/webrtc/browser_devices_get_user_media_screen.js 2018-05-23 17:07:33 +03:00
Cameron Kaiser
fbc0928677 Bug 1434589: Add ppc64 to webrtc, regenerate moz.build to remove SSE2 dependency for Linux. r=froydnj
--HG--
extra : rebase_source : 7915ec4e623b3e35fcdf84b21a4f8a869044bac8
2018-05-27 22:21:07 -07:00
Dan Minor
40fcbf60d9 Bug 1450658 - Should bring window to front when screen-sharing a window; r=pehrsons
This adds a FocusOnSelectedSource method to PCameras and uses it to focus the
selected window while window sharing. We can't just focus the window as soon as
it is shared because we have a live preview in the getUserMedia permissions
prompt which would cause the prompt to lose focus. Instead, this only focuses the
window when the sharing is not done from a chrome context.


MozReview-Commit-ID: 5jre75E3JLi

--HG--
extra : rebase_source : 97f472f6ed1c5d6bed1af01fb7243a82b2629b03
2018-05-08 15:55:36 -04:00
Mike Hommey
af5ff10060 Bug 1462873 - Link chromium_atomics to webrtc tests. r=froydnj
This redoes bug 1257888 which bug 1393119 undid.

--HG--
extra : rebase_source : 1f2e9225c1548d34d7b0d46a4c754ef594c44ee3
2018-05-19 13:00:56 +09:00
David Major
4ac65c8eef Bug 1459617: Merge upstream webrtc fix for build bustage with clang trunk. r=dminor
https://webrtc.googlesource.com/src/+/bda78c9464f4d0e6ff26b0035624a967269c3b0a
2018-05-09 16:32:31 -04:00
Paul Adenot
c6e563b490 Bug 1456115 - Make last_sample_rate_ in neteq_impl.cc atomic. r=dminor
This allows removing locking, and allows other threads to progress without
taking the lock, hence lowering the probability that the lock will be taken for
a long time when we need to pull NeqEQ.

MozReview-Commit-ID: HMO67A0hher

--HG--
extra : rebase_source : aa5c77895eb57d60b61d9a8a5822e53593348830
2018-04-23 11:55:19 +02:00
Paul Adenot
1c6c907315 Bug 1456115 - Remove locking in AcmReceiver::GetAudio. r=dminor
This also causes a lot of dropouts. We don't need to lock here. NetEQ is thread
safe, and its created in the ctor. The rest of the members are made atomic or is
simply never accessed in multiple threads.

MozReview-Commit-ID: 2fRw5ZgxdpQ

--HG--
extra : rebase_source : f2aa082a3e856e873cfcd96ff721ccdc77df3633
2018-04-12 14:36:02 +02:00
Paul Adenot
19325f0f09 Bug 1456115 - Stop locking when getting the sampling rate from the channel in acm_receiver.cc. r=dminor
This accounts for half of our audio dropouts, there is very high contention on
this piece of data.

MozReview-Commit-ID: 2HSfqZHT2MK

--HG--
extra : rebase_source : 10c451ac60563a0f1c14a314f5a12cc45055e20b
2018-04-09 13:52:08 +02:00
Narcis Beleuzu
d6e889b127 Backed out 4 changesets (bug 1456115) for Asan Mochitest filures "AddressSanitizer: stack-overflow /celt/bands.c:1437:4 in quant_all_bands". CLOSED TREE
Backed out changeset 3379d4fc07f6 (bug 1456115)
Backed out changeset 9c77f5b53b56 (bug 1456115)
Backed out changeset e48268ffa4d8 (bug 1456115)
Backed out changeset bffecfd92808 (bug 1456115)
2018-04-24 21:47:07 +03:00
Paul Adenot
a1d88e5fb9 Bug 1456115 - Make last_sample_rate_ in neteq_impl.cc atomic. r=dminor
This allows removing locking, and allows other threads to progress without
taking the lock, hence lowering the probability that the lock will be taken for
a long time when we need to pull NeqEQ.

MozReview-Commit-ID: HMO67A0hher

--HG--
extra : rebase_source : aa5c77895eb57d60b61d9a8a5822e53593348830
2018-04-23 11:55:19 +02:00
Paul Adenot
2d783a2f32 Bug 1456115 - Remove locking in AcmReceiver::GetAudio. r=dminor
This also causes a lot of dropouts. We don't need to lock here. NetEQ is thread
safe, and its created in the ctor. The rest of the members are made atomic or is
simply never accessed in multiple threads.

MozReview-Commit-ID: 2fRw5ZgxdpQ

--HG--
extra : rebase_source : f2aa082a3e856e873cfcd96ff721ccdc77df3633
2018-04-12 14:36:02 +02:00
Paul Adenot
581308e902 Bug 1456115 - Stop locking when getting the sampling rate from the channel in acm_receiver.cc. r=dminor
This accounts for half of our audio dropouts, there is very high contention on
this piece of data.

MozReview-Commit-ID: 2HSfqZHT2MK

--HG--
extra : rebase_source : 10c451ac60563a0f1c14a314f5a12cc45055e20b
2018-04-09 13:52:08 +02:00
Dan Minor
aa20bd6084 Bug 1437345 - Update generated files; r=jesup
MozReview-Commit-ID: 5xmc2mrA2mz

--HG--
extra : rebase_source : 88e2293daadc84ca2e4246371ffa4e37ae9853ac
2018-03-19 08:35:21 -07:00
Jan Beich
036d3dfaf5 Bug 1437345 - Don't try to build audio_device backends. r=dminor
MozReview-Commit-ID: JjLucnqna0A

--HG--
extra : rebase_source : 3aff9d6da57917840b1f27430911a426ace4fbd0
2018-03-14 17:09:06 +00:00
Dan Minor
71ea2be163 Bug 1437345 - Set defaults for gn visual studio build; r=jesup
This hard codes the visual studio version to 2015. We did the same thing for the
gyp build. It also sets default paths for visual studio, which are ignored by the
remainder of the build system.

This was required to get gn code generation working on a fresh install of
Windows. I must have had similar changes on my old Windows VM but missed
commiting them as part of the gyp to gn build switch.

MozReview-Commit-ID: 7fYngpdIwxh

--HG--
extra : rebase_source : de24b50f8e19465d8c145ce96c31d4ad7cc52e57
2018-03-19 06:55:21 -07:00
Dan Minor
b42c863551 Bug 1453740 - Allow 1x1 windows in VP8EncoderImpl::InitEncode; r=pehrsons
A minimized window has a resolution of 1x1. Although we removed minimized windows from the list
of available windows to share, nothing prevents the user from minimizing it during a call. With
the current code, this will cause InitEncode to fail, resulting in a fatal release assert.

I tested this patch with window sharing on meet.google.com and I was able to minimize and restore
the window several times without problem. While minimized, the window appears as a black screen
to the other meeting participants. It renders normally when restored.

MozReview-Commit-ID: LE2NBiEy8nw

--HG--
extra : rebase_source : f95fd3f797e9f7262a938087ce3fb1e27f743920
2018-04-12 11:31:59 -07:00
Andreas Pehrson
2dcab8c04e Bug 1452048 - Read _captureStarted under lock on the camera thread. r=dminor
It is written under lock on the controlling thread (CamerasParent) in
StartCapture/StopCapture.

MozReview-Commit-ID: E7eq1YElhwt

--HG--
extra : rebase_source : f37b666d84c6710ac0d5c56002b82c707635f49b
2018-04-06 15:50:31 +02:00
Andreas Pehrson
3ed24c4f4c Bug 1452048 - Leave critical section before calling into java StartCapture(). r=dminor
If we stay in the critical section, and the StartCapture() is a reconfiguring
one, we risk deadlocking with IncomingFrame which runs on the camera thread.

MozReview-Commit-ID: 5rU4urrBWxr

--HG--
extra : rebase_source : 4c6e0c1e02eb1116a1fe433681bf4ad36f47186a
2018-04-06 15:49:24 +02:00
Andreas Pehrson
edabee9ab6 Bug 1452048 - Give Looper lifetime control to external callers. r=dminor
Looper lifetime must be handled by external callers as otherwise internal
callers may accidentally and unknowingly quit the looper and essentially
terminate the camera thread, stopping any flow of frames and preventing future
messages.

In this case, a reconfig of the capture settings through startCapture() causes
startCaptureOnCameraThread() to restart the capture by calling into
stopCaptureOnCameraThread() (quitting the looper) and then re-calling
startCaptureOnCameraThread() (not restarting the looper as that is invalid).

The camera thread is set up by startCapture() on the external calling thread,
which will never know that a seemingly graceful camera thread operation stopped
the camera thread altogether, and so it cannot take any action.

MozReview-Commit-ID: DUTFdanTan1

--HG--
extra : rebase_source : afeb80aa8b2596a2615f57ec4af182a837323b7e
2018-04-06 13:59:45 +02:00
Andreas Pehrson
14c26e7086 Bug 1440255 - Remove tabs from VideoCaptureAndroid. r=dminor
MozReview-Commit-ID: Ga3TgD9J030

--HG--
extra : rebase_source : d8edb95a541ecfb9ee391f03c5484f92865a2e2d
2018-04-05 12:03:12 +02:00
Andreas Pehrson
74e4bc1164 Bug 1440255 - Consolidate failure paths. r=dminor
The cameraThread is set by startCapture(), so a failed startCapture() that
quits the Looper and runs the cameraThread to completion needs to set
cameraThread back to null for consistency.

Likewise, stopCapture() shall always quit the Looper and set cameraThread to
null.

MozReview-Commit-ID: H1ExLyTixYw

--HG--
extra : rebase_source : 472b657cd8219533a5878f5b268b6288e1fe6320
2018-04-05 16:04:13 +02:00
Andreas Pehrson
d9f2b85781 Bug 1440255 - Make VideoCaptureAndroid reconfigurable through subsequent startCapture. r=dminor
MozReview-Commit-ID: 9yslx7rMN2w

--HG--
extra : rebase_source : 87808e17efb58b7194ce87719beb610a19fa0be3
2018-04-04 20:17:21 +02:00
Andreas Pehrson
75146eb774 Bug 1440255 - Move thread exchanging out to runnables. r=dminor
This is the proper fix for bug 1420585.

MozReview-Commit-ID: 5WKMvbpQFSE

--HG--
extra : rebase_source : 32269d06a7e826db2ea882cbc974c366a63f39c0
2018-04-05 11:56:30 +02:00
Andreas Pehrson
745c2b59a9 Bug 1440255 - Backout bug 1420585 deadlock wallpaper fix r=dminor
MozReview-Commit-ID: DurGH2RmXQH

--HG--
extra : rebase_source : 16400494705c332bb8739b28735a941c84f0a379
2018-04-05 11:55:26 +02:00
Andreas Pehrson
8333691fd5 Bug 1441585 - Set picture size to something valid. r=dminor
MozReview-Commit-ID: 13lZcfR9wlC

--HG--
extra : rebase_source : 4037cca90cccc846f7b4e0c6da12eace3962d5af
2018-04-05 17:32:09 +02:00
Jan Beich
d4cf2a6748 Bug 1437670 - Regenerate mozbuild for WebRTC. r=dminor f=gaston
MozReview-Commit-ID: 3rH2nC0xsjZ

--HG--
extra : rebase_source : cabbc459e6b2da68f21a110b2b17cca67485aa51
2018-03-11 21:53:13 +00:00
Landry Breuil
cc3d087962 Bug 1437670 - Restore BSD support in WebRTC. r=dminor f=jbeich
Original porting was done in bug 807492, so this is mostly gyp->gn translation.
cflags/libs are left unchanged as those aren't used by Gecko.

MozReview-Commit-ID: Bhw6KduoiVm

--HG--
extra : rebase_source : 485f1dfe38106b895ec481444e8a32d08f72f5e7
2018-03-10 13:30:00 -08:00
Jan Beich
5bd9fa806e Bug 1437670 - Add basic BSD support to GN build. r=dminor f=gaston
- If cross-toolchain is N/A use system one instead of error
- BSDs often use Linux interfaces, so don't exclude the files
- Define is_bsd as changes specific to a particular BSD are rare
- Adjust is_clang in case Gecko would use it in future

MozReview-Commit-ID: 5LlCbEKbAPO

--HG--
extra : rebase_source : 68fc72056f65c28d43d2bfb238b26b8895e76ba9
2018-03-11 18:34:27 +00:00
Andreas Pehrson
b9cd3068b0 Bug 1436341 - Stop() instead of Pause() device when stopping capture on Windows. r=jib
Pause() gave the benefit of another app not being able to steal
the device until the next Run(). It would keep the light on for
some cameras however.

Stop() makes the light go out on these cameras, but put them up
for another application to steal. Basically the same as on our
other platforms.

MozReview-Commit-ID: FPRYcZ2PEpm

--HG--
extra : rebase_source : 1870eb6933b02c83c7e61ac275b648fdde9b4cec
2018-03-07 10:43:23 +01:00