Commit Graph

18056 Commits

Author SHA1 Message Date
932a9e8c16 Roll chromium_revision b2c5e5f71d..3038b2f84f (474991:475012)
Change log: b2c5e5f71d..3038b2f84f
Full diff: b2c5e5f71d..3038b2f84f

Changed dependencies:
* src/ios: 90ba070cca..df046dc0e2
* src/testing: 8570c1779d..c9a762a960
* src/third_party: 9fc0dcb0dc..dd0d4e6633
* src/third_party/catapult: 91b60843fb..239f08ec63
* src/tools: b0761e3782..e55992cbb3
DEPS diff: b2c5e5f71d..3038b2f84f/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2904213002
Cr-Commit-Position: refs/heads/master@{#18274}
2017-05-26 16:13:27 +00:00
1c2378b57d Roll chromium_revision b4155a0bbd..b2c5e5f71d (471848:474991)
Change log: b4155a0bbd..b2c5e5f71d
Full diff: b4155a0bbd..b2c5e5f71d

Changed dependencies:
* src/base: 4545fc1f63..4282da8bcd
* src/build: f671d3baeb..fa9670aa5f
* src/buildtools: 98f00fa10d..104574186c
* src/ios: 411732c0b9..90ba070cca
* src/testing: dbbebc0d54..8570c1779d
* src/third_party: 744b88f9a8..9fc0dcb0dc
* src/third_party/boringssl/src: https://boringssl.googlesource.com/boringssl.git/+log/1e5cb820de..68f84f5c40
* src/third_party/catapult: 9e7bc18ce7..91b60843fb
* src/third_party/ffmpeg: 28a5cdde5c..cb7f9fc2ad
* src/third_party/googletest/src: 8c7f93feda..42bc671f47
* src/third_party/gtest-parallel: c95bf7d82c..21b383f81a
* src/third_party/icu: 87232d8d76..c844075aa0
* src/third_party/libvpx/source/libvpx: ac8f58f6ab..b3bf91bdc6
* src/third_party/libyuv: 945ea1b746..8edd2286fd
* src/tools: e095601b86..b0761e3782
DEPS diff: b4155a0bbd..b2c5e5f71d/DEPS

Clang version changed 301384:303910
Details: b4155a0bbd..b2c5e5f71d/tools/clang/scripts/update.py

TBR=marpan@webrtc.org,
BUG=None

Review-Url: https://codereview.webrtc.org/2906023003
Cr-Commit-Position: refs/heads/master@{#18273}
2017-05-26 13:41:07 +00:00
fe9ecb07ea Revert of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #1 id:1 of https://codereview.webrtc.org/2903153005/ )
Reason for revert:
Reverting again: internal project issues were apparently not completely fixed.

Original issue's description:
> Reland of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #1 id:1 of https://codereview.webrtc.org/2904893002/ )
>
> Reason for revert:
> Revert the revert now that internal projects are updated.
>
> Original issue's description:
> > Revert of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #4 id:160001 of https://codereview.webrtc.org/2896813002/ )
> >
> > Reason for revert:
> > Breaks internal project.
> >
> > Original issue's description:
> > > Activate 'offload debug dump recordings from audio thread to TaskQueue'.
> > >
> > > A low priority task queue is added to WebRTCVoiceEngine. The
> > > start/stop debug calls make file logging happen on the task queue.
> > >
> > > In a dependent CL (https://codereview.webrtc.org/2888303003), the task queue is moved to PeerConnectionFactory,
> > > so that it can be shared for low priority tasks between different
> > > subcomponents. It will require some changes to MediaEngine,
> > > CompositeMediaEngine, WebRTCVoiceEngine, and changes in internal
> > > projects.
> > >
> > > A task queue must be created and destroyed from the same thread. With
> > > this CL that will be the worker thread, which creates and destroys
> > > WebRTCVoiceEngine. With the dependent CL, it will probably change to
> > > the signaling thread.
> > >
> > > NOTRY=True # tests just passed
> > >
> > > BUG=webrtc:7404
> > >
> > > Review-Url: https://codereview.webrtc.org/2896813002
> > > Cr-Commit-Position: refs/heads/master@{#18252}
> > > Committed: c61bf947b4
> >
> > TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
> > # Skipping CQ checks because original CL landed less than 1 days ago.
> > NOPRESUBMIT=true
> > NOTREECHECKS=true
> > NOTRY=true
> > BUG=webrtc:7404
> >
> > Review-Url: https://codereview.webrtc.org/2904893002
> > Cr-Commit-Position: refs/heads/master@{#18255}
> > Committed: be68b72cfa
>
> TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:7404
>
> Review-Url: https://codereview.webrtc.org/2903153005
> Cr-Commit-Position: refs/heads/master@{#18270}
> Committed: d2303a2338

TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7404

Review-Url: https://codereview.webrtc.org/2910633002
Cr-Commit-Position: refs/heads/master@{#18272}
2017-05-26 12:46:34 +00:00
5914b1da78 Revert "Promote Linux32 Debug (ARM) bot to main waterfall"
This reverts commit b8c926b141d0aaec5e08001546a044ec993c7ce3.

Reason for revert: Unstable builds for the trybot.

Original change's description:
> Promote Linux32 Debug (ARM) bot to main waterfall
> 
> Cleanup unused MB entry and enable in CQ.
> 
> BUG=webrtc:7090
> NOTRY=True
> TBR=kjellander@webrtc.org
> 
> Change-Id: Ie7447b343bd3304b18abed6ca5d9db4e9df94b1d
> Reviewed-on: https://chromium-review.googlesource.com/514027
> Commit-Queue: Henrik Kjellander <kjellander@chromium.org>
> Reviewed-by: Henrik Kjellander <kjellander@chromium.org>
> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#18262}

TBR=kjellander@chromium.org,ehmaldonado@webrtc.org,ehmaldonado@chromium.org
# Not skipping CQ checks because original CL landed > 1 day ago.
BUG=webrtc:7090
NOTRY=True

Change-Id: I57088eff02f0f63f66e041a091bee9f8cb818ff0
Reviewed-on: https://chromium-review.googlesource.com/517084
Commit-Queue: Henrik Kjellander <kjellander@chromium.org>
Reviewed-by: Henrik Kjellander <kjellander@chromium.org>
Cr-Commit-Position: refs/heads/master@{#18271}
2017-05-26 12:29:22 +00:00
d2303a2338 Reland of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #1 id:1 of https://codereview.webrtc.org/2904893002/ )
Reason for revert:
Revert the revert now that internal projects are updated.

Original issue's description:
> Revert of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #4 id:160001 of https://codereview.webrtc.org/2896813002/ )
>
> Reason for revert:
> Breaks internal project.
>
> Original issue's description:
> > Activate 'offload debug dump recordings from audio thread to TaskQueue'.
> >
> > A low priority task queue is added to WebRTCVoiceEngine. The
> > start/stop debug calls make file logging happen on the task queue.
> >
> > In a dependent CL (https://codereview.webrtc.org/2888303003), the task queue is moved to PeerConnectionFactory,
> > so that it can be shared for low priority tasks between different
> > subcomponents. It will require some changes to MediaEngine,
> > CompositeMediaEngine, WebRTCVoiceEngine, and changes in internal
> > projects.
> >
> > A task queue must be created and destroyed from the same thread. With
> > this CL that will be the worker thread, which creates and destroys
> > WebRTCVoiceEngine. With the dependent CL, it will probably change to
> > the signaling thread.
> >
> > NOTRY=True # tests just passed
> >
> > BUG=webrtc:7404
> >
> > Review-Url: https://codereview.webrtc.org/2896813002
> > Cr-Commit-Position: refs/heads/master@{#18252}
> > Committed: c61bf947b4
>
> TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:7404
>
> Review-Url: https://codereview.webrtc.org/2904893002
> Cr-Commit-Position: refs/heads/master@{#18255}
> Committed: be68b72cfa

TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:7404

Review-Url: https://codereview.webrtc.org/2903153005
Cr-Commit-Position: refs/heads/master@{#18270}
2017-05-26 12:13:18 +00:00
407e3afd37 Add sakal@webrtc.org as an owner of examples/androidtests.
BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2886363004
Cr-Commit-Position: refs/heads/master@{#18269}
2017-05-26 10:24:12 +00:00
d7fdb8014d Reland of Removes usage of native base::android::GetApplicationContext()
The change is now compatible with the old JVM::Initialize API. The
context is passed to the ContextUtils class when calling its deprecated
signature.

BUG=webrtc:7665
NOTRY=True # Only comment changes since the last patchset.

Review-Url: https://codereview.webrtc.org/2903253004
Cr-Commit-Position: refs/heads/master@{#18268}
2017-05-26 08:51:53 +00:00
13ae11a418 Add observer for AVAudioSession.outputVolume
BUG=webrtc:7696

Review-Url: https://codereview.webrtc.org/2895263006
Cr-Commit-Position: refs/heads/master@{#18267}
2017-05-26 00:52:20 +00:00
a615e17ec0 Allow constructing an EglBase from an existing shared EGLContext.
BUG=None

Review-Url: https://codereview.webrtc.org/2885163003
Cr-Commit-Position: refs/heads/master@{#18266}
2017-05-25 17:11:25 +00:00
8b7e9ad554 Support "UDP/DTLS/SCTP" and "TCP/DTLS/SCTP" profile strings.
This CL doesn't yet offer these protos; it just accepts them if they're
seen in a remote offer. It also doesn't verify that the ICE candidate
protocol matches the m= section protocol (UDP vs. TCP), since we don't
do this elsewhere and don't really have a reason to care.

This CL also adds an integration test that receives a spec-compliant
SCTP offer and attempts to send data bidirectionally.

BUG=webrtc:7706

Review-Url: https://codereview.webrtc.org/2902213002
Cr-Commit-Position: refs/heads/master@{#18265}
2017-05-25 16:38:55 +00:00
edd6eea542 Rename elad.alon to eladalon, to avoid confusion between repositories.
BUG=None
NOTRY=true

Review-Url: https://codereview.webrtc.org/2899303002
Cr-Commit-Position: refs/heads/master@{#18264}
2017-05-25 07:15:35 +00:00
548cdce7bc Revert of https://codereview.webrtc.org/2889183002/
And also revert https://codereview.webrtc.org/2888093005/ (Chromium roll) which has a dependency on 2889183002

BUG=webrtc:7707

Review-Url: https://codereview.webrtc.org/2897423002
Cr-Commit-Position: refs/heads/master@{#18263}
2017-05-24 23:45:57 +00:00
b8c926b141 Promote Linux32 Debug (ARM) bot to main waterfall
Cleanup unused MB entry and enable in CQ.

BUG=webrtc:7090
NOTRY=True
TBR=kjellander@webrtc.org

Change-Id: Ie7447b343bd3304b18abed6ca5d9db4e9df94b1d
Reviewed-on: https://chromium-review.googlesource.com/514027
Commit-Queue: Henrik Kjellander <kjellander@chromium.org>
Reviewed-by: Henrik Kjellander <kjellander@chromium.org>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Cr-Commit-Position: refs/heads/master@{#18262}
2017-05-24 20:47:05 +00:00
4e2810223e Roll chromium_revision b28a8b8dd4..c1878a272a (474318:474375)
Change log: b28a8b8dd4..c1878a272a
Full diff: b28a8b8dd4..c1878a272a

Changed dependencies:
* src/base: 11cbecba67..b05612a7f4
* src/build: 427c444f50..4763c94e5e
* src/ios: bbf9ede97b..ecec75065b
* src/testing: d20f342d4b..5fef37b05e
* src/third_party: fb1dd67f60..9577054f45
* src/third_party/catapult: ae648e4434..6bd7ec0348
* src/tools: d3c1d52f6c..352772c07f
DEPS diff: b28a8b8dd4..c1878a272a/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2900203003
Cr-Commit-Position: refs/heads/master@{#18261}
2017-05-24 19:17:03 +00:00
20acdf2443 Add vp9 QP parser.
BUG=webrtc:7662

Review-Url: https://codereview.webrtc.org/2891803003
Cr-Commit-Position: refs/heads/master@{#18260}
2017-05-24 17:00:16 +00:00
a0c5d40a9e Roll chromium_revision ffd476b19f..b28a8b8dd4 (474264:474318)
Change log: ffd476b19f..b28a8b8dd4
Full diff: ffd476b19f..b28a8b8dd4

Changed dependencies:
* src/base: 46dc265b13..11cbecba67
* src/build: 35afe395a3..427c444f50
* src/ios: bda863233a..bbf9ede97b
* src/testing: 8a1cc3f78a..d20f342d4b
* src/third_party: b84d2d7ede..fb1dd67f60
* src/tools: 105fbaaec1..d3c1d52f6c
DEPS diff: ffd476b19f..b28a8b8dd4/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2901093005
Cr-Commit-Position: refs/heads/master@{#18259}
2017-05-24 16:44:52 +00:00
c5108786eb Add JSON and MB configs for the internal iOS bots.
BUG=chromium:704912
NOTRY=True

Review-Url: https://codereview.webrtc.org/2903843002
Cr-Commit-Position: refs/heads/master@{#18258}
2017-05-24 15:44:45 +00:00
ae550e397a Correct sequence-number injection into packets in rtp_packet_unittest.cc
BUG=None

Review-Url: https://codereview.webrtc.org/2899293002
Cr-Commit-Position: refs/heads/master@{#18257}
2017-05-24 15:28:13 +00:00
b30cb6bc33 Roll chromium_revision a590e1184a..ffd476b19f (474230:474264)
Change log: a590e1184a..ffd476b19f
Full diff: a590e1184a..ffd476b19f

Changed dependencies:
* src/base: c0c60a704b..46dc265b13
* src/build: 66a0af8441..35afe395a3
* src/ios: e344c3eca3..bda863233a
* src/testing: bf57e6c54b..8a1cc3f78a
* src/third_party: 1a4a751764..b84d2d7ede
* src/third_party/catapult: 6fb71b5335..ae648e4434
* src/tools: 35d0d2e889..105fbaaec1
DEPS diff: a590e1184a..ffd476b19f/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2898173004
Cr-Commit-Position: refs/heads/master@{#18256}
2017-05-24 13:10:54 +00:00
be68b72cfa Revert of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #4 id:160001 of https://codereview.webrtc.org/2896813002/ )
Reason for revert:
Breaks internal project.

Original issue's description:
> Activate 'offload debug dump recordings from audio thread to TaskQueue'.
>
> A low priority task queue is added to WebRTCVoiceEngine. The
> start/stop debug calls make file logging happen on the task queue.
>
> In a dependent CL (https://codereview.webrtc.org/2888303003), the task queue is moved to PeerConnectionFactory,
> so that it can be shared for low priority tasks between different
> subcomponents. It will require some changes to MediaEngine,
> CompositeMediaEngine, WebRTCVoiceEngine, and changes in internal
> projects.
>
> A task queue must be created and destroyed from the same thread. With
> this CL that will be the worker thread, which creates and destroys
> WebRTCVoiceEngine. With the dependent CL, it will probably change to
> the signaling thread.
>
> NOTRY=True # tests just passed
>
> BUG=webrtc:7404
>
> Review-Url: https://codereview.webrtc.org/2896813002
> Cr-Commit-Position: refs/heads/master@{#18252}
> Committed: c61bf947b4

TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7404

Review-Url: https://codereview.webrtc.org/2904893002
Cr-Commit-Position: refs/heads/master@{#18255}
2017-05-24 11:19:54 +00:00
0afb13014b AudioEncoderPcm16B: Number of bits/sample is 16, not 2
Clearly, this was a case of bit/byte confusion.

BUG=none

Review-Url: https://codereview.webrtc.org/2904883002
Cr-Commit-Position: refs/heads/master@{#18254}
2017-05-24 11:09:52 +00:00
edf00f846e Roll chromium_revision cca67d31f4..a590e1184a (474153:474230)
Change log: cca67d31f4..a590e1184a
Full diff: cca67d31f4..a590e1184a

Changed dependencies:
* src/base: 414d17a2ac..c0c60a704b
* src/build: 5488ca8df8..66a0af8441
* src/testing: 2393ca4149..bf57e6c54b
* src/third_party: f336aafa2c..1a4a751764
* src/third_party/catapult: f136f48001..6fb71b5335
* src/tools: 06b0b52a2c..35d0d2e889
DEPS diff: cca67d31f4..a590e1184a/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2900173005
Cr-Commit-Position: refs/heads/master@{#18253}
2017-05-24 10:09:59 +00:00
c61bf947b4 Activate 'offload debug dump recordings from audio thread to TaskQueue'.
A low priority task queue is added to WebRTCVoiceEngine. The
start/stop debug calls make file logging happen on the task queue.

In a dependent CL (https://codereview.webrtc.org/2888303003), the task queue is moved to PeerConnectionFactory,
so that it can be shared for low priority tasks between different
subcomponents. It will require some changes to MediaEngine,
CompositeMediaEngine, WebRTCVoiceEngine, and changes in internal
projects.

A task queue must be created and destroyed from the same thread. With
this CL that will be the worker thread, which creates and destroys
WebRTCVoiceEngine. With the dependent CL, it will probably change to
the signaling thread.

NOTRY=True # tests just passed

BUG=webrtc:7404

Review-Url: https://codereview.webrtc.org/2896813002
Cr-Commit-Position: refs/heads/master@{#18252}
2017-05-24 08:47:18 +00:00
d5115e0cac Roll chromium_revision fc674bec51..cca67d31f4 (473937:474153)
Memcheck suppression stacks changed slightly due to the googletest
roll so a few suppressions needed to be updated.

Change log: fc674bec51..cca67d31f4
Full diff: fc674bec51..cca67d31f4

Changed dependencies:
* src/base: 14fe060b4d..414d17a2ac
* src/build: b19d8a0c0e..5488ca8df8
* src/ios: 4378a2bccb..e344c3eca3
* src/testing: 34532746b5..2393ca4149
* src/third_party: 5530bd0f35..f336aafa2c
* src/third_party/catapult: 08a6e0ac16..f136f48001
* src/third_party/googletest/src: 8c7f93feda..42bc671f47
* src/tools: e9c26b8d46..06b0b52a2c
DEPS diff: fc674bec51..cca67d31f4/DEPS

No update to Clang.

TBR=
BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2902923002
Cr-Commit-Position: refs/heads/master@{#18251}
2017-05-24 07:57:03 +00:00
3696f7efc4 Remove unneeded gmock header from RPLR UT
BUG=None

Review-Url: https://codereview.webrtc.org/2898193002
Cr-Commit-Position: refs/heads/master@{#18250}
2017-05-24 07:13:25 +00:00
1b92722ad5 Simplified the ERLE computation code in AEC3
BUG=webrtc:7519

Review-Url: https://codereview.webrtc.org/2901253002
Cr-Commit-Position: refs/heads/master@{#18249}
2017-05-24 06:44:47 +00:00
aea9293fd4 Revert of Fixing potential AsyncInvoker deadlock that occurs for "reentrant" invocations. (patchset #3 id:40001 of https://codereview.webrtc.org/2885143006/ )
Reason for revert:
Causes a new TSan race warning. Will reland after fixing. Note this is the same race as will be fixed by https://codereview.webrtc.org/2876273002/.

Original issue's description:
> Fixing potential AsyncInvoker deadlock that occurs for "reentrant" invocations.
>
> The deadlock occurs if the AsyncInvoker is destroyed on thread A while
> a task on thread B is running, which AsyncInvokes a task back on thread
> A.
>
> This was causing pending_invocations_ to end up negative, because
> an AsyncClosure that's never added to a thread's message queue (due to
> the "destroying_" flag) caused the count to be decremented but not
> incremented.
>
> BUG=None
>
> Review-Url: https://codereview.webrtc.org/2885143006
> Cr-Commit-Position: refs/heads/master@{#18225}
> Committed: ef37ca5fb3

TBR=nisse@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=None

Review-Url: https://codereview.webrtc.org/2904543003
Cr-Commit-Position: refs/heads/master@{#18248}
2017-05-23 19:55:03 +00:00
b34f6a8520 Remove deprecated isFirstPacket member name
Original rename .isFirstPacket to .is_first_packet_in_frame
was done in https://codereview.webrtc.org/2614503002

BUG=None

Review-Url: https://codereview.webrtc.org/2895473004
Cr-Commit-Position: refs/heads/master@{#18247}
2017-05-23 18:06:56 +00:00
70f134bb70 Roll chromium_revision 0531535acb..fc674bec51 (473892:473937)
Change log: 0531535acb..fc674bec51
Full diff: 0531535acb..fc674bec51

Changed dependencies:
* src/base: 5788b61bd6..14fe060b4d
* src/ios: 9471164150..4378a2bccb
* src/testing: 7787960e7a..34532746b5
* src/third_party: 6a50d669f0..5530bd0f35
* src/tools: d596610110..e9c26b8d46
DEPS diff: 0531535acb..fc674bec51/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2900953003
Cr-Commit-Position: refs/heads/master@{#18246}
2017-05-23 17:09:14 +00:00
95e9754e40 More gracefully handle timing errors, such as unexpected changes in the rtp timestamp.
BUG=webrtc:7682

Review-Url: https://codereview.webrtc.org/2898763005
Cr-Commit-Position: refs/heads/master@{#18245}
2017-05-23 16:52:18 +00:00
7a3006bae7 Fix packetization logic to leave space for extensions in the last packet
Change packetizer interface to explicitly return number of packets
instead of a last flag. Account for extra space needed in the last
packet.

BUG=webrtc:7588,webrtc:7594

Review-Url: https://codereview.webrtc.org/2871173008
Cr-Commit-Position: refs/heads/master@{#18244}
2017-05-23 16:34:21 +00:00
d019667c00 Linux desktopCapture: fix the cursor position issue in Window sharing
On Linux, during Windwo sharing, the cursore capture may happen in the parent
window of the target. And the parent window may have some decorations added by
window manager(Chrome windows don't have those decorations.), so the relative
cursor position to the parent window with decorations may differ to its child
target window. The offset includes the height of caption bar and the around
shadow and border.
This problem only happens with Window sharing on Linux.

The fix is to translate the coordinates from the parent window to the coordinates space of the target window.

BUG=723889

Review-Url: https://codereview.webrtc.org/2889063002
Cr-Commit-Position: refs/heads/master@{#18243}
2017-05-23 16:31:14 +00:00
c1b5ea959e Add traces for some video receive statistics.
This CL adds traces to compute the following metrics that getStats()
captures for video:
- googFrameRateOutput
- packetsLost
- googFrameWidthReceived
- googFrameHeightReceived
- googCurrentDelayMs
- googTargetDelayMs
- googDecodeMs
- googMaxDecodeMs
- googJitterBufferMs
- googRenderDelayMs

BUG=chromium:653087

Review-Url: https://codereview.webrtc.org/2884643004
Cr-Commit-Position: refs/heads/master@{#18242}
2017-05-23 16:06:13 +00:00
06013e99ac AecDump implementation.
This CL implements webrtc::AecDump, which is an interface defined in
https://codereview.webrtc.org/2778783002.

This AudioProcessing submodule writes audio and APM state to a
file. The file writing is done by posting IO tasks
(write_to_file_task.h) on an rtc::TaskQueue. There is an existing
implementation for this through AudioProcessing::StartDebugRecording()
and AudioProcessing::StopDebugRecording(). This implementation still
works, and is used as the default until this dependent CL:
https://codereview.webrtc.org/2896813002/.

To be able to build webrtc without protobuf support, the interface is
isolated from protobuf types. Audio data from AudioProcessing is
passed to AecDumpImpl through the AecDump interface. There it is
stored in protobuf objects, which are posted on the task queue.

This functionality is verified correct by the CL
https://codereview.webrtc.org/2864373002, which enables this recording
submodule in APM tests.

BUG=webrtc:7404

Review-Url: https://codereview.webrtc.org/2865113002
Cr-Commit-Position: refs/heads/master@{#18241}
2017-05-23 15:52:05 +00:00
f27c5b8d6e Add FlexfecReceiver unit test for infinite recovery loop.
This CL adds unit tests to the FlexfecReceiver, verifying that the
infinite recovery loop described in
https://codereview.webrtc.org/2867943003/ is tested for.

BUG=webrtc:5654

Review-Url: https://codereview.webrtc.org/2895083002
Cr-Commit-Position: refs/heads/master@{#18240}
2017-05-23 15:38:43 +00:00
cc8b14b1ec Revert of Remove unecessary non fatal error statement that very often is printed in the PSNR or SSIM metric n… (patchset #1 id:1 of https://codereview.webrtc.org/2901793002/ )
Reason for revert:
Looks like we need the return there after all: derefence error in: https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fclient.webrtc.perf%2FAndroid64_Tests__L_Nexus9_%2F2967%2F%2B%2Frecipes%2Fsteps%2Fvideo_quality_loopback_test%2F0%2Fstdout

Original issue's description:
> Remove unecessary non fatal error statement that very often is printed in the PSNR or SSIM metric numbered list
>
> BUG=webrtc:7698
> NOTRY=TRUE
>
> Review-Url: https://codereview.webrtc.org/2901793002
> Cr-Commit-Position: refs/heads/master@{#18234}
> Committed: 18d023f9ee

TBR=kjellander@webrtc.org,oprypin@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7698

Review-Url: https://codereview.webrtc.org/2899973004
Cr-Commit-Position: refs/heads/master@{#18239}
2017-05-23 15:31:11 +00:00
61d88b8d7b Roll chromium_revision b4155a0bbd..0531535acb (471848:473892)
Change log: b4155a0bbd..0531535acb
Full diff: b4155a0bbd..0531535acb

Changed dependencies:
* src/base: 4545fc1f63..5788b61bd6
* src/build: f671d3baeb..b19d8a0c0e
* src/ios: 411732c0b9..9471164150
* src/testing: dbbebc0d54..7787960e7a
* src/third_party: 744b88f9a8..6a50d669f0
* src/third_party/boringssl/src: https://boringssl.googlesource.com/boringssl.git/+log/1e5cb820de..467d3220f8
* src/third_party/catapult: 9e7bc18ce7..08a6e0ac16
* src/third_party/gtest-parallel: c95bf7d82c..21b383f81a
* src/third_party/icu: 87232d8d76..c844075aa0
* src/third_party/libvpx/source/libvpx: ac8f58f6ab..b3bf91bdc6
* src/tools: e095601b86..d596610110
DEPS diff: b4155a0bbd..0531535acb/DEPS

Clang version changed 301384:303369
Details: b4155a0bbd..0531535acb/tools/clang/scripts/update.py

TBR=marpan@webrtc.org,
BUG=None

Review-Url: https://codereview.webrtc.org/2900963003
Cr-Commit-Position: refs/heads/master@{#18238}
2017-05-23 15:27:10 +00:00
7d79e63a48 Cast sequence number in RtpFrameObject.
BUG=webrtc:7700

Review-Url: https://codereview.webrtc.org/2902743002
Cr-Commit-Position: refs/heads/master@{#18237}
2017-05-23 15:19:11 +00:00
916170ae46 Don't boost QP after drop unless there is sufficient bandwidth
If a frame is dropped and re-encoded because it exceeded the target
bitrate by a large factor, the next frame will be encoded at max qp
(worst quality) in order to get a frame through in a timely manner. The
next frame after this will still have lower quality since the rate
controller essentially gets reset. In order to mitigate that we boost
the qp for that next frame, which brings the stream back to a good
quality quicker.

However, if the network conditions are _really_ bad, this boosted qp
may be too large, causing the frame again to be dropped an re-encoded.

This CL set's a minimum bitrate available in order to enabling the
boosting in the first place.
It also adjusts a timeout (max time between frames in TL0), since a
too small value and very difficult frames in conjunction with the
mentioned bad network could actually cause bad network over-utilization
in turn leading to packet loss and bad follow-on effects to that.

There was also some slop in the rate keeping for the two layers.
This has been tightened up and affected test cases have been fixed.

BUG=webrtc:7694

Review-Url: https://codereview.webrtc.org/2897983002
Cr-Commit-Position: refs/heads/master@{#18236}
2017-05-23 14:47:55 +00:00
7855fff5bf Reland of moves usage of native base::android::GetApplicationContext() (patchset #1 id:1 of https://codereview.webrtc.org/2894593002/ )
Reason for revert:
Fix issue.

Original issue's description:
> Revert of Removes usage of native base::android::GetApplicationContext() (patchset #6 id:120001 of https://codereview.webrtc.org/2888093004/ )
>
> Reason for revert:
> Breaks bot on chromium.webrtc.fyi.
>
> Original issue's description:
> > Removes usage of native base::android::GetApplicationContext()
> >
> > BUG=webrtc:7665
> >
> > Review-Url: https://codereview.webrtc.org/2888093004
> > Cr-Commit-Position: refs/heads/master@{#18195}
> > Committed: bc83e2ee69
>
> TBR=magjed@webrtc.org,henrika@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:7665
>
> Review-Url: https://codereview.webrtc.org/2894593002
> Cr-Commit-Position: refs/heads/master@{#18196}
> Committed: 40d224814a

BUG=webrtc:7665

Review-Url: https://codereview.webrtc.org/2889183002
Cr-Commit-Position: refs/heads/master@{#18235}
2017-05-23 14:34:17 +00:00
18d023f9ee Remove unecessary non fatal error statement that very often is printed in the PSNR or SSIM metric numbered list
BUG=webrtc:7698
NOTRY=TRUE

Review-Url: https://codereview.webrtc.org/2901793002
Cr-Commit-Position: refs/heads/master@{#18234}
2017-05-23 14:26:41 +00:00
868f32f423 AudioProcessingModule has a feature to make a recording of its
configuration, inputs and outputs over a period of time. It is
activated by AudioProcessing::StartRecording. The data is stored in
binary protobuf format in a specified file. The file IO is, as of
this CL, done from the real-time audio thread.

This CL contains an interface for AecDump, a new APM submodule that
will handle the recordings. Calls to the new interface from the
AudioProcessingModule are added. These calls have no effect, and for a
short while, audio_processing_impl.cc will contain two copies of
recording calls.

The original calls are guarded by the WEBRTC_AUDIOPROC_DEBUG_DUMP
preprocessor define. They still have an effect, while the new ones do
not. In the following CLs, the old recording calls will be removed,
and an implementation of AecDump added.

The reasons for the refactoring is to move file IO operations from the
real-time audio thread, to add a top-level low-priority task queue for
logging tasks like this, to simplify and modularize audio_processing_impl.cc
and remove some of the preprocessor directives. These goals will be
archived by the upcoming CLs. The implementation is in
https://codereview.webrtc.org/2865113002.

BUG=webrtc:7404

Review-Url: https://codereview.webrtc.org/2778783002
Cr-Commit-Position: refs/heads/master@{#18233}
2017-05-23 14:20:05 +00:00
dceb42da3e Update screen simulcast config and fix periodic encoder param update
Lower then bitrate so that the delta between the highest layer of the
lower stream and lowest layer of the higher stream is not too large.

Also fix a bug in vie_encoder where the codec was not perioducally
updated unless a new bitrate estimate was triggered.

BUG=webrtc:4172

Review-Url: https://codereview.webrtc.org/2791273002
Cr-Commit-Position: refs/heads/master@{#18232}
2017-05-23 13:45:08 +00:00
c3d4b48e7e Store/restore RTP state for audio streams with same SSRC within a call
This functionality already exists for video streams, so not having it
for audio is unexpected and has lead to problems.

BUG=webrtc:7631

Review-Url: https://codereview.webrtc.org/2887733002
Cr-Commit-Position: refs/heads/master@{#18231}
2017-05-23 13:07:11 +00:00
23ac8b49f4 Preserve level controller output when no other effects are active
This CL ensures that the output of the level controller is kept
when no other submodules in APM are active

BUG=webrtc:7697,

Review-Url: https://codereview.webrtc.org/2902723002
Cr-Commit-Position: refs/heads/master@{#18230}
2017-05-23 12:33:56 +00:00
1d68089f4b Transparency increasing tuning for AEC3.
This CL increases the transparency of the AEC3 via tuning.
The major changes are
1) Limiting the suppression gain to the 16 bit sample floor.
2) Controlling the rate of the suppression gain increase
   according to the signal characteristics.

Apart from these tunings, the code for the suppression gain
was refactored to increase/maintain the code quality after
the above changes.

BUG=webrtc:7519,webrtc:7528, chromium:715893

Review-Url: https://codereview.webrtc.org/2886733002
Cr-Commit-Position: refs/heads/master@{#18229}
2017-05-23 11:07:10 +00:00
5e171752a2 Reland of use allocated encoders in SimulcastEncoderAdapter. (patchset #1 id:1 of https://codereview.webrtc.org/2893003002/ )
Reason for reland:
Chrome encoder implementation fixed.

Original issue's description:
> Revert of Reuse allocated encoders in SimulcastEncoderAdapter. (patchset #15 id:320001 of https://codereview.webrtc.org/2830793005/ )
>
> Reason for revert:
> Breaks Chrome tests.
>
> Original issue's description:
> > Reuse allocated encoders in SimulcastEncoderAdapter.
> >
> > Prior to this change, the SimulcastEncoderAdapter would destroy and create
> > encoders whenever it is being reinitialized. After this change, the
> > SimulcastEncoderAdapter will cache the already allocated encoders, and reuse
> > them after reinitialization.
> >
> > This change will help in reducing the number of PictureID "jumps" that have
> > been seen around encoder reinitialization.
> >
> > TESTED=AppRTCMobile, Chrome desktop, and internal app, with forced encoder reinits every 30 frames and https://codereview.webrtc.org/2833493003/ applied.
> > BUG=webrtc:7475
> >
> > Review-Url: https://codereview.webrtc.org/2830793005
> > Cr-Commit-Position: refs/heads/master@{#18215}
> > Committed: 0b8bfb9d98
>
> TBR=stefan@webrtc.org,noahric@chromium.org,glaznev@webrtc.org,sprang@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:7475
>
> Review-Url: https://codereview.webrtc.org/2893003002
> Cr-Commit-Position: refs/heads/master@{#18216}
> Committed: 56e119e2e8

TBR=stefan@webrtc.org,noahric@chromium.org,glaznev@webrtc.org,sprang@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:7475

Review-Url: https://codereview.webrtc.org/2901493002
Cr-Commit-Position: refs/heads/master@{#18228}
2017-05-23 10:32:16 +00:00
884ab92d7c Update autoroller after FromImpl was removed from depot tools
In https://chromium-review.googlesource.com/c/509693/ the From
keyword was removed. This update the script to match that (we
also were no longer using it).

BUG=None
TBR=ehmaldonado@webrtc.org
NOTRY=True

Change-Id: I3d8fb9d696ee7677f7d250ecd0e6ff997375034b
Reviewed-on: https://chromium-review.googlesource.com/512202
Commit-Queue: Henrik Kjellander <kjellander@chromium.org>
Reviewed-by: Henrik Kjellander <kjellander@chromium.org>
Cr-Commit-Position: refs/heads/master@{#18227}
2017-05-23 07:22:23 +00:00
8a8ebd94b0 Field trial support to whenever possible turn off the AGC and HPF
When operating on mobile devices, where hardware support is available
for the AEC and NS functionality, it is desirable to be able to
operate without hardcoded behaviors for the WebRTC AGC and HPF.

This CL adds support to allow a field trial to turn these off
whenever that is possible.

BUG=webrtc:6220, webrtc:6183, webrtc:6181

Review-Url: https://codereview.webrtc.org/2876133002
Cr-Commit-Position: refs/heads/master@{#18226}
2017-05-22 22:48:47 +00:00
ef37ca5fb3 Fixing potential AsyncInvoker deadlock that occurs for "reentrant" invocations.
The deadlock occurs if the AsyncInvoker is destroyed on thread A while
a task on thread B is running, which AsyncInvokes a task back on thread
A.

This was causing pending_invocations_ to end up negative, because
an AsyncClosure that's never added to a thread's message queue (due to
the "destroying_" flag) caused the count to be decremented but not
incremented.

BUG=None

Review-Url: https://codereview.webrtc.org/2885143006
Cr-Commit-Position: refs/heads/master@{#18225}
2017-05-22 22:32:51 +00:00