18056 Commits

Author SHA1 Message Date
Sami Kalliomäki
8d08a92c05 Do not copy I420 frames in the decoder when not necessary.
In most cases we can just return a frame referencing the buffer
returned by the decoder.

Bug: webrtc:7760
Change-Id: I0b42ab9662b39149e42a3c83adfd38a9d80e0e30
Reviewed-on: https://chromium-review.googlesource.com/544299
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Bjorn Mellem <mellem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18824}
2017-06-29 08:10:16 +00:00
Mirko Bonadei
b14fad45b8 Adding newline at the end of .proto files
Some .proto files have newline at the end. This CL levels all our .proto
files. A presubmit check will follow.

NOTRY=True
TBR=minyue@webrtc.org

Bug: None
Change-Id: I988fe94c31abf91c85a45b564c488329d677b958
Reviewed-on: https://chromium-review.googlesource.com/552137
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18823}
2017-06-29 07:09:12 +00:00
Henrik Kjellander
f4efb6fb3d Reland "Move webrtc/{base => rtc_base} (stub headers)
Add the stub headers from https://codereview.webrtc.org/2877023002
as a separate commit. This preserves git blame history of the moved files.

BUG=webrtc:7634
NOTRY=True
TBR=kwiberg@webrtc.org

Change-Id: Ic141abf11801fbfdeea5bcdb23608696ad449013
Reviewed-on: https://chromium-review.googlesource.com/554623
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18822}
2017-06-29 06:21:49 +00:00
Henrik Kjellander
c03627683f Reland "Move webrtc/{base => rtc_base}" (https://codereview.webrtc.org/2877023002)
Reland the base->rtc_base without adding stub headers (will be
done in follow-up CL). This preserves git blame history of all files.

BUG=webrtc:7634
NOTRY=True
TBR=kwiberg@webrtc.org

Change-Id: Iea3bb6f3f67b8374c96337b63e8f5aa3e6181012
Reviewed-on: https://chromium-review.googlesource.com/554611
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18821}
2017-06-29 06:04:25 +00:00
Henrik Kjellander
ec78f1cebc Revert "Move webrtc/{base => rtc_base}" (https://codereview.webrtc.org/2877023002)
Will reland in two different commits to preserve git blame history.

BUG=webrtc:7634
NOTRY=True
TBR=kwiberg@webrtc.org

Change-Id: I550da8525aeb9c5b8f96338fcf1c9714f3dcdab1
Reviewed-on: https://chromium-review.googlesource.com/554610
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18820}
2017-06-29 05:54:22 +00:00
zhihuang
a4c113afe1 Support building WebRTC without audio and video for IOS.
Reorganized the targets in webrtc/sdk/BUILD.gn so that the applications which use
WebRTC DataChannel only can depend on the "peerconnection_factory_no_media"
instead of "rtc_sdk_objc" to reduce the binary size.

Provided a no-media implementation of RTCPeerConnectionFactory using the macro
"HAVE_NO_MEDIA".

BUG=webrtc:7613

Review-Url: https://codereview.webrtc.org/2944643002
Cr-Commit-Position: refs/heads/master@{#18819}
2017-06-28 21:05:44 +00:00
Henrik Kjellander
9588682dfe Update memcheck suppression for HttpServer.SignalsCloseAfterForcedCloseAll
This failed on the Memcheck bot due to different stack signature.
Widening the suppression should fix that.

BUG=webrtc:5988
TBR=pthatcher@webrtc.org

Change-Id: Ia448d0f157d650e3ab6d4b02b3acbac91c62d1cd
Reviewed-on: https://chromium-review.googlesource.com/553377
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18818}
2017-06-28 20:39:36 +00:00
Henrik Kjellander
9b808e7c43 Update TSan suppressions for base->rtc_base rename
This is needed after 6776518bea
It wasn't detected since it was a build-only change,
the TSan trybot wasn't run.

BUG=webrtc:7634
NOTRY=True
TBR=kwiberg@webrtc.org

Change-Id: Idb8e71bc302349a55b729174e01c4824f707a8d7
Reviewed-on: https://chromium-review.googlesource.com/553358
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18817}
2017-06-28 20:27:43 +00:00
Henrik Kjellander
6776518bea Move webrtc/{base => rtc_base}
This refactoring takes a careful approach to avoid rushing the change:
* stub headers are left in all the old locations of webrtc/base
* existing GN targets are kept and now just forward to the moved ones
  using public_deps.
The only exception to the above is the base_java target and its .java files,
which were moved to webrtc/rtc_base right away since it's not possible
to use public_deps for android_library.
To avoid breaking builds, a temporary Dummy.java file was added to
the new intermediate target in webrtc/rtc_base:base_java as well to avoid
hitting a GN assert in the android_library template.

The above approach should make the transition smooth without breaking
downstream.

A helper script was created (https://codereview.webrtc.org/2879203002/)
and was run like this:
stub-headers.py -s webrtc/base -d webrtc/rtc_base -i 7634
stub-headers.py -s webrtc/base/numerics -d webrtc/rtc_base/numerics -i 7634

Fixed invalid header guards in the following files:
webrtc/base/base64.h
webrtc/base/cryptstring.h
webrtc/base/event.h
webrtc/base/flags.h
webrtc/base/httpbase.h
webrtc/base/httpcommon-inl.h
webrtc/base/httpcommon.h
webrtc/base/httpserver.h
webrtc/base/logsinks.h
webrtc/base/macutils.h
webrtc/base/nattypes.h
webrtc/base/openssladapter.h
webrtc/base/opensslstreamadapter.h
webrtc/base/pathutils.h
webrtc/base/physicalsocketserver.h
webrtc/base/proxyinfo.h
webrtc/base/sigslot.h
webrtc/base/sigslotrepeater.h
webrtc/base/socket.h
webrtc/base/socketaddresspair.h
webrtc/base/socketfactory.h
webrtc/base/stringutils.h
webrtc/base/testbase64.h
webrtc/base/testutils.h
webrtc/base/transformadapter.h
webrtc/base/win32filesystem.h

Added new header guards to:
sslroots.h
testbase64.h

BUG=webrtc:7634
NOTRY=True
NOPRESUBMIT=True
R=kwiberg@webrtc.org

Review-Url: https://codereview.webrtc.org/2877023002 .
Cr-Commit-Position: refs/heads/master@{#18816}
2017-06-28 18:58:10 +00:00
buildbot
e0eb35dd53 Roll chromium_revision 8af690d4cd..9dd69e9f64 (482924:483005)
Change log: 8af690d4cd..9dd69e9f64
Full diff: 8af690d4cd..9dd69e9f64

Changed dependencies:
* src/base: 9caba2e93e..17f9859ee0
* src/ios: 85b2b2e903..53ce82b239
* src/third_party: 1a75b4f870..e19d70a99a
* src/third_party/catapult: 89832b5327..1e5227efcb
* src/tools: 7c1cc25ee4..449a27a99f
DEPS diff: 8af690d4cd..9dd69e9f64/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2957333002
Cr-Commit-Position: refs/heads/master@{#18815}
2017-06-28 16:55:54 +00:00
deadbeef
86c40a14b4 Fixing RTCIceCandidatePairStats.nominated for ICE controlling agent.
Was only working when the nonstandard "renomination" extension to ICE
is enabled, which chromium doesn't use.

BUG=chromium:734094

Review-Url: https://codereview.webrtc.org/2957303002
Cr-Commit-Position: refs/heads/master@{#18814}
2017-06-28 16:37:23 +00:00
eladalon
c3e3e60f59 nit: Rename RtpDemuxer::sink_ to RtpDemuxer::ssrc_sinks_
Rationale:
1. sinks_ is not properly differentiated from rsid_sinks_.
2. Consistency with RtcpDemuxer.

BUG=webrtc:7135

Review-Url: https://codereview.webrtc.org/2958283002
Cr-Commit-Position: refs/heads/master@{#18813}
2017-06-28 15:18:51 +00:00
Alex Loiko
9f789a4500 LowCutFilter::BiqueadFilter::Process: Fix UBSan fuzzer bug
(left shift of negative value)


Bug: chromium:735593
Change-Id: I9f1165370d850456480fbb22ce2434bf933a420b
Reviewed-on: https://chromium-review.googlesource.com/552136
Commit-Queue: Alex Loiko <aleloi@google.com>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18812}
2017-06-28 14:55:20 +00:00
eladalon
d6e9466e7e No compliation-flag-dependent members in CriticalSection
Having members in a class which only exist when certain compliation flags are turned on (unless relating to the target platform) means that those flags must be the same when compiling the module as when including its headers from other modules. This means that code outside of WebRTC runs the risk of misjudging the size of an rtc::CriticalSection, or any class which has an rtc::CriticalSection as a member. (This rule is applied recursively.) If a mismatch occurs, memory corruption is likely.

Having discussed this a bit, we have decided that the simplest solution is probably the best - always define those members, even when compilation flags (namely, CS_DEBUG_CHECKS) render it unused.

BUG=webrtc:7867

Review-Url: https://codereview.webrtc.org/2957753002
Cr-Commit-Position: refs/heads/master@{#18811}
2017-06-28 14:31:30 +00:00
henrika
3d0e7bb907 Improved thread checking scheme for iOS.
TBR=zeke

Bug: b/63071036
Change-Id: Iaa6325a8d360f121f82683115c73cc136e174ba6
Reviewed-on: https://chromium-review.googlesource.com/552539
Reviewed-by: Henrik Andreasson <henrika@webrtc.org>
Commit-Queue: Henrik Andreasson <henrika@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18810}
2017-06-28 14:20:30 +00:00
Danil Chapovalov
1330166bc0 Add value_type alias to rtc::Buffer
It allows to use rtc::Buffer in templates that expect std container,
e.g. it can now be used as ::testing::ElementsAreArray parameter

Bug: None
Change-Id: I97d7ffb13393d02850ddb213f7a1d01129b10b05
Reviewed-on: https://chromium-review.googlesource.com/539635
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18809}
2017-06-28 13:59:40 +00:00
terelius
c8e0552c07 Limit the number of simultaneous event logs.
BUG=webrtc:7887

Review-Url: https://codereview.webrtc.org/2956003003
Cr-Commit-Position: refs/heads/master@{#18808}
2017-06-28 13:40:51 +00:00
Henrik Kjellander
41b59ca8bf Fix CQ_INCLUDE_TRYBOTS CL value generated by roll_deps.py
A seen in https://codereview.webrtc.org/2956153004/ the CQ
is picky about the ending ;, so this CL removes it.

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

Change-Id: I5e6359f0966f171c98225a982da042cc7147f765
Reviewed-on: https://chromium-review.googlesource.com/552138
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Edward Lemur <ehmaldonado@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18807}
2017-06-28 13:06:37 +00:00
ilnik
3635f44f3e Workaround for hardware encoders crashing timing frames processing
BUG=webrtc:7893

Review-Url: https://codereview.webrtc.org/2961043002
Cr-Commit-Position: refs/heads/master@{#18806}
2017-06-28 10:53:19 +00:00
jbauch
03fa534fcc Support getting external HMAC auth context with libsrtp 2.1.0.
This is in preparation of upgrading to libsrtp 2.1.0.

BUG=webrtc:7856

Review-Url: https://codereview.webrtc.org/2958123002
Cr-Commit-Position: refs/heads/master@{#18805}
2017-06-28 10:35:57 +00:00
buildbot
8cb4397fa0 Roll chromium_revision 1b96d497c1..8af690d4cd (482761:482924)
Change log: 1b96d497c1..8af690d4cd
Full diff: 1b96d497c1..8af690d4cd

Changed dependencies:
* src/base: f8bde9c273..9caba2e93e
* src/build: d1d51d3325..ca3fb287a5
* src/ios: c7dda527c5..85b2b2e903
* src/testing: 5b41a1d1ad..3a078c38c1
* src/third_party: 15594769ca..1a75b4f870
* src/third_party/catapult: bdff8501d7..89832b5327
* src/tools: 44e2f6ae79..7c1cc25ee4
DEPS diff: 1b96d497c1..8af690d4cd/DEPS

No update to Clang.

TBR=
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Review-Url: https://codereview.webrtc.org/2956153004
Cr-Commit-Position: refs/heads/master@{#18804}
2017-06-28 09:59:37 +00:00
solenberg
db3c9b0f72 Expose ILBC codec in webrtc/api/audio_codecs/
BUG=webrtc:7834, webrtc:7840

Review-Url: https://codereview.webrtc.org/2951873002
Cr-Commit-Position: refs/heads/master@{#18803}
2017-06-28 09:05:04 +00:00
kjellander
cd9dd458d0 Revert of Roll chromium_revision 1b96d497c1..6e26093ba6 (482761:482873) (patchset #1 id:1 of https://codereview.webrtc.org/2961953002/ )
Reason for revert:
The reason for reverting is: Breaks internal project. Previous roll was already
reverted in https://codereview.webrtc.org/2957243002 but the autoroller wasn't
halted so this was relanded here..

Original issue's description:
> Roll chromium_revision 1b96d497c1..6e26093ba6 (482761:482873)
>
> Change log: 1b96d497c1..6e26093ba6
> Full diff: 1b96d497c1..6e26093ba6
>
> Changed dependencies:
> * src/base: f8bde9c273..9112182a54
> * src/build: d1d51d3325..ca3fb287a5
> * src/ios: c7dda527c5..ca97ab62d4
> * src/testing: 5b41a1d1ad..a546983908
> * src/third_party: 15594769ca..90317046fa
> * src/third_party/catapult: bdff8501d7..aff474911e
> * src/tools: 44e2f6ae79..d239f484b2
> DEPS diff: 1b96d497c1..6e26093ba6/DEPS
>
> No update to Clang.
>
> TBR=
> BUG=None
>
> Review-Url: https://codereview.webrtc.org/2961953002
> Cr-Commit-Position: refs/heads/master@{#18796}
> Committed: 8a671751fc

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

Review-Url: https://codereview.webrtc.org/2962833002
Cr-Commit-Position: refs/heads/master@{#18802}
2017-06-28 08:23:23 +00:00
Sami Kalliomäki
372e587ea8 Fix samplingMatrix for I420Frames converted from VideoFrame.
The conversion code was wrong because it assumed the 3x3 matrix is a
XYZ-matrix when it really is XYW-matrix. We have to override the matrix
for I420 frames to flip the vertically before rendering.

R=magjed@webrtc.org

Bug: webrtc:7760
Change-Id: I1f08c1a929bf5721706e2a902701100cf7a9c31d
Reviewed-on: https://chromium-review.googlesource.com/541346
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18801}
2017-06-28 07:58:42 +00:00
Sami Kalliomäki
3aa3ea7913 Improve HardwareVideoDecoder stability.
Adds a timeout to the dequeue input buffer call. This improves stability
because WebRTC quickly queues frames multiple when the call starts. This
might cause the decoder to run out of input buffers. Waiting for
dequeueOutputBuffers call is no longer necessary.

Bug: webrtc:7760
Change-Id: I503ff1cf44042c4d8610077090148d9dfef169f5
Reviewed-on: https://chromium-review.googlesource.com/548357
Reviewed-by: Bjorn Mellem <mellem@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18800}
2017-06-28 07:38:22 +00:00
Henrik Kjellander
912b4d57cb Fix typo in roll_deps.py
https://chromium-review.googlesource.com/c/551717/ had
a typo :P

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

Change-Id: I2f63c3a43de872e3255a1eb9facee1868f2d88a1
Reviewed-on: https://chromium-review.googlesource.com/551897
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Commit-Queue: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18799}
2017-06-28 07:32:52 +00:00
Henrik Kjellander
de4ea0cf0b Add linux_internal trybot to DEPS autoroll script.
This will make this bot be triggered for autoroll CLs.

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

Change-Id: I6d8920a4c10a5dee36e5cb93a1e3cb6e3a2ed7ae
Reviewed-on: https://chromium-review.googlesource.com/551717
Commit-Queue: Henrik Kjellander <kjellander@webrtc.org>
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18798}
2017-06-28 06:33:42 +00:00
zijiehe
3dd574ad31 Ensure Dxgi duplicator works correctly in session 0
A recent update of Windows 10 blocks IDXGIAdapter::EnumOutputs() in session 0,
so ScreenCapturerWinDirectx::IsSupported() always returns false in session 0. We
should ensure ScreenCapturerWinDirectx can respond correctly in session 0.
Meanwhile, this change looses the requirement of DirectX capturer: it still
works if some of the video adapters do not support DirectX 11 or
IDXGIOutputDuplication. This issue usually happens when handling a virtual video
adapter.

BUG=webrtc:7809

Review-Url: https://codereview.webrtc.org/2937663003
Cr-Commit-Position: refs/heads/master@{#18797}
2017-06-28 05:04:21 +00:00
buildbot
8a671751fc Roll chromium_revision 1b96d497c1..6e26093ba6 (482761:482873)
Change log: 1b96d497c1..6e26093ba6
Full diff: 1b96d497c1..6e26093ba6

Changed dependencies:
* src/base: f8bde9c273..9112182a54
* src/build: d1d51d3325..ca3fb287a5
* src/ios: c7dda527c5..ca97ab62d4
* src/testing: 5b41a1d1ad..a546983908
* src/third_party: 15594769ca..90317046fa
* src/third_party/catapult: bdff8501d7..aff474911e
* src/tools: 44e2f6ae79..d239f484b2
DEPS diff: 1b96d497c1..6e26093ba6/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2961953002
Cr-Commit-Position: refs/heads/master@{#18796}
2017-06-28 04:13:37 +00:00
zhihuang
93a889b88c Revert of Roll chromium_revision 1b96d497c1..11b33cca76 (482761:482828) (patchset #1 id:1 of https://codereview.webrtc.org/2955103004/ )
Reason for revert:
Break the internal projects.

Original issue's description:
> Roll chromium_revision 1b96d497c1..11b33cca76 (482761:482828)
>
> Change log: 1b96d497c1..11b33cca76
> Full diff: 1b96d497c1..11b33cca76
>
> Changed dependencies:
> * src/base: f8bde9c273..427b19dc6e
> * src/build: d1d51d3325..ca3fb287a5
> * src/ios: c7dda527c5..46352e1c77
> * src/testing: 5b41a1d1ad..86d44c075b
> * src/third_party: 15594769ca..e3946e37d2
> * src/third_party/catapult: bdff8501d7..dc62dbb869
> * src/tools: 44e2f6ae79..0e3d26767f
> DEPS diff: 1b96d497c1..11b33cca76/DEPS
>
> No update to Clang.
>
> TBR=
> BUG=None
>
> Review-Url: https://codereview.webrtc.org/2955103004
> Cr-Commit-Position: refs/heads/master@{#18794}
> Committed: cb09abd845

TBR=buildbot@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/2957243002
Cr-Commit-Position: refs/heads/master@{#18795}
2017-06-28 02:29:07 +00:00
buildbot
cb09abd845 Roll chromium_revision 1b96d497c1..11b33cca76 (482761:482828)
Change log: 1b96d497c1..11b33cca76
Full diff: 1b96d497c1..11b33cca76

Changed dependencies:
* src/base: f8bde9c273..427b19dc6e
* src/build: d1d51d3325..ca3fb287a5
* src/ios: c7dda527c5..46352e1c77
* src/testing: 5b41a1d1ad..86d44c075b
* src/third_party: 15594769ca..e3946e37d2
* src/third_party/catapult: bdff8501d7..dc62dbb869
* src/tools: 44e2f6ae79..0e3d26767f
DEPS diff: 1b96d497c1..11b33cca76/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2955103004
Cr-Commit-Position: refs/heads/master@{#18794}
2017-06-28 01:25:55 +00:00
buildbot
fadfc5e4c0 Roll chromium_revision 0591491eb3..1b96d497c1 (482698:482761)
Change log: 0591491eb3..1b96d497c1
Full diff: 0591491eb3..1b96d497c1

Changed dependencies:
* src/base: 990ff1f30a..f8bde9c273
* src/buildtools: 7f2cacbbe2..1dcd1bdbe9
* src/ios: 14a5caf272..c7dda527c5
* src/testing: 8a4dce9dfe..5b41a1d1ad
* src/third_party: a739549138..15594769ca
* src/third_party/catapult: 45d20f29a9..bdff8501d7
* src/tools: 659830978f..44e2f6ae79
DEPS diff: 0591491eb3..1b96d497c1/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2955123003
Cr-Commit-Position: refs/heads/master@{#18793}
2017-06-27 22:33:23 +00:00
zhihuang
696f8ca2fa Handle the PROTO_TSL when getting the protocol priority.
This bug breaks the internal project.

TBR=deadbeef@webrtc.org, pthacher@webrtc.org
BUG=webrtc:7889

Review-Url: https://codereview.webrtc.org/2959993002
Cr-Commit-Position: refs/heads/master@{#18792}
2017-06-27 22:11:24 +00:00
Henrik Kjellander
a7d0df7ac1 Enable libjingle_peerconnection_datachannelonly_so target.
This change also wires up the rest of the production code in
webrtc/sdk/android to be built when the directory is a dependency.

BUG=webrtc:7613
NOTRY=True

Change-Id: Ideda181970a5a570c3f8148b033e471e926243d1
Reviewed-on: https://chromium-review.googlesource.com/548038
Reviewed-by: Zhi Huang <zhihuang@webrtc.org>
Commit-Queue: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18791}
2017-06-27 20:20:05 +00:00
buildbot
542407cb6a Roll chromium_revision eafc049cce..0591491eb3 (482638:482698)
Change log: eafc049cce..0591491eb3
Full diff: eafc049cce..0591491eb3

Changed dependencies:
* src/base: f71f6374bc..990ff1f30a
* src/build: 1c753713c7..d1d51d3325
* src/ios: 761a812050..14a5caf272
* src/testing: 84a1565a97..8a4dce9dfe
* src/third_party: dd2dc45e89..a739549138
* src/third_party/catapult: 520dd376a2..45d20f29a9
* src/tools: 4d657ccab3..659830978f
DEPS diff: eafc049cce..0591491eb3/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2956113002
Cr-Commit-Position: refs/heads/master@{#18790}
2017-06-27 19:14:49 +00:00
buildbot
14f59e3e7f Roll chromium_revision 23503cd4bc..eafc049cce (482586:482638)
Change log: 23503cd4bc..eafc049cce
Full diff: 23503cd4bc..eafc049cce

Changed dependencies:
* src/base: c52508bc1c..f71f6374bc
* src/build: 861c0a62fc..1c753713c7
* src/ios: 1818867149..761a812050
* src/testing: a614028613..84a1565a97
* src/third_party: 4d852f1621..dd2dc45e89
* src/third_party/boringssl/src: https://boringssl.googlesource.com/boringssl.git/+log/773ae91d0e..3120950b1e
* src/tools: df5c450c3b..4d657ccab3
DEPS diff: 23503cd4bc..eafc049cce/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2958053002
Cr-Commit-Position: refs/heads/master@{#18789}
2017-06-27 16:18:42 +00:00
henrika
323197ab0c Attempt to reduce AUDIO_RECORD_START_STATE_MISMATCH error rate on Android.
Bug: b/63010674
Change-Id: I75ab10d43c13622084f5819bef7fbe2185f40b20
Reviewed-on: https://chromium-review.googlesource.com/549363
Commit-Queue: Alex Glaznev <glaznev@chromium.org>
Reviewed-by: Alex Glaznev <glaznev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#18788}
2017-06-27 15:58:43 +00:00
Sami Kalliomäki
471f63559f Allow passing in decoder factory to PeerConnectionFactory.
Bug: webrtc:7760
Change-Id: I8509de8f0170f1f60f917992b5806b926a8bb392
Reviewed-on: https://chromium-review.googlesource.com/535561
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18787}
2017-06-27 15:31:13 +00:00
deadbeef
8179a7cf97 Fixing bad use of std::sort in test method.
It was used to force a codec to the top of a list, but it resulted in
"a < a" being true, which some C++ runtimes complain about.

BUG=None
TBR=pthatcher@webrtc.org

Review-Url: https://codereview.webrtc.org/2963543002
Cr-Commit-Position: refs/heads/master@{#18786}
2017-06-27 14:52:50 +00:00
terelius
376473054c Only use 95% of the link capacity if the true link capacity is found by probing.
Dont do a normal AimdRateControlUpdate update after a probe. Only set result.updated if the bitrate estimate has changed.

BUG=webrtc:7866

Review-Url: https://codereview.webrtc.org/2949203002
Cr-Commit-Position: refs/heads/master@{#18785}
2017-06-27 14:50:31 +00:00
Per Åhgren
4bdced5d93 Corrected the initialization of the AEC3
This CL corrects the initialization of the AEC3, as well 
as for the other submodules in the whole audio processing module
in the sense that it properly update the submodule states also
for the case when reinitialization is trigger from the render
side of the audio processing module.

Bug: chromium:736889,webrtc:7879
Change-Id: I423e963835d0c3227caa8e186b29031bcb912515
Reviewed-on: https://chromium-review.googlesource.com/549315
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18784}
2017-06-27 14:43:03 +00:00
ilnik
267041c470 Fix deadlock in webrtc_perf_tests
Reenable hanging tests on Mac.

Deadlock happened because the following locks were grabbed by two threads at the end of a test:
Thread 1:
CapturedFrameForwarder::AddOrUpdateSink() locks CapturedFrameForwarder::crit_ and calls
FrameGeneratorCapturer::AddOrUpdateSink() what tries to lock FrameGeneratorCapturer::lock_.

Thread 2:
FrameGeneratorCapturer::InsertFrame() locks FrameGeneratorCapturer::lock_ and calls
CapturedFrameForwarder::OnFrame() which tries to lock CapturedFrameForwarder::crit_.

So two threads are locking two same locks in different orders which may cause deadlock.

BUG=webrtc:7870

Review-Url: https://codereview.webrtc.org/2955083002
Cr-Commit-Position: refs/heads/master@{#18783}
2017-06-27 14:21:01 +00:00
sprang
4847ae6b51 Reland of Periodically update codec bit/frame rate settings.
Patch set 1 is a reland + trivial rebase.
Patch set >= 2 contains bug fixes.

> Original issue's description:
> > Fix bug in vie_encoder.cc which caused channel parameters not to be updated at regular intervals, as it was intended.
> >
> > That however exposes a bunch of failed test, so this CL also fixed a few other things:
> > * FakeEncoder should trust the configured FPS value rather than guesstimating itself based on the realtime clock, so as not to completely undershoot targets in offline mode. Also, compensate for key-frame overshoots when outputting delta frames.
> > * FrameDropper should not assuming incoming frame rate is 0 if no frames have been seen.
> > * Fix a bunch of test cases that started failing because they were relying on the fake encoder undershooting.
> > * Fix test
> >
> > BUG=7664
> >
> > Review-Url: https://codereview.webrtc.org/2883963002
> > Cr-Commit-Position: refs/heads/master@{#18473}
> > Committed: 6431e21da6

BUG=webrtc:7664

Review-Url: https://codereview.webrtc.org/2953053002
Cr-Commit-Position: refs/heads/master@{#18782}
2017-06-27 14:06:52 +00:00
Per Åhgren
f0a6fb19c6 Corrected the computation of the headroom in the AEC3 buffer alignment
This CL corrects the computation of the delay headroom so that
it is only updated when the delay is updated. This is important
as otherwise a too large headroom will be reported, which then
could cause buffer access issues.

Bug: webrtc:7878, chromium:736893
Change-Id: Ib37cb608b064dd5d4df3f8fc423448ee80ed0106
Reviewed-on: https://chromium-review.googlesource.com/549335
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18781}
2017-06-27 11:42:37 +00:00
Kári Tristan Helgason
17c11ec37c Fix building RTCCameraVideoCapturereTests with iOS 11 SDK.
The iOS 11 SDK adds nullability annotations to several framework functions
and in this it added the _Nonnull specifier to a protocol method that
we implement. We were passing nil to that method in a test.
The warning is now fixed by passing a mock object instead of nil.

Bug: webrtc:7883
Change-Id: I9f64b0c59750629ca3969400aa725729bb10541b
Reviewed-on: https://chromium-review.googlesource.com/549927
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Commit-Queue: Kári Tristan Helgason <kthelgason@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18780}
2017-06-27 11:01:47 +00:00
buildbot
2d94f815c6 Roll chromium_revision 751f0a2995..23503cd4bc (482554:482586)
Change log: 751f0a2995..23503cd4bc
Full diff: 751f0a2995..23503cd4bc

Changed dependencies:
* src/base: 78a3bb2033..c52508bc1c
* src/build: 41581c8f05..861c0a62fc
* src/ios: c95a0234fb..1818867149
* src/testing: 2ea261a29e..a614028613
* src/third_party: b46764e180..4d852f1621
* src/tools: 8e82c573f9..df5c450c3b
DEPS diff: 751f0a2995..23503cd4bc/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2956063002
Cr-Commit-Position: refs/heads/master@{#18779}
2017-06-27 10:27:28 +00:00
Anders Carlsson
121ea329ba Notify delegates about audio glitches in real time
Bug: webrtc:7819
Change-Id: I72ec77d216ce386dd45aef68eeac833b3a75b670
Reviewed-on: https://chromium-review.googlesource.com/543239
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Reviewed-by: Henrik Andreasson <henrika@webrtc.org>
Commit-Queue: Anders Carlsson <andersc@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18778}
2017-06-27 09:43:27 +00:00
Sami Kalliomäki
93ad1f7f1b Reland C++ wrapper for VideoDecoder and VideoDecoderFactory interfaces.
This reverts commit 37a23504980bbd06fa9b1709357ce6a33afada30.

Reason for revert: Fix compilation error on release builds.

Original change's description:
> Revert "C++ wrapper for VideoDecoder and VideoDecoderFactory interfaces."
> 
> This reverts commit ef4342f21ba9448138fc7d22482f3210cb20fd7e.
> 
> Reason for revert: Breaks chromium.webrtc.fyi
> 
> Original change's description:
> > C++ wrapper for VideoDecoder and VideoDecoderFactory interfaces.
> > 
> > Bug: webrtc:7760
> > Change-Id: I136aff9bcfb9244bb45ec552b5443f4a06b87c27
> > Reviewed-on: https://chromium-review.googlesource.com/535475
> > Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
> > Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#18773}
> 
> TBR=magjed@webrtc.org,sakal@webrtc.org
> 
> Change-Id: I45810b9f3573074bb52539aa63843d59865c02f2
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:7760
> Reviewed-on: https://chromium-review.googlesource.com/549337
> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
> Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#18776}

TBR=magjed@webrtc.org,sakal@webrtc.org

Change-Id: Id38836a1cb63ff265af6562a0512818acb8afb0a
Bug: webrtc:7760
Reviewed-on: https://chromium-review.googlesource.com/549338
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18777}
2017-06-27 08:26:00 +00:00
Sami Kalliomäki
37a2350498 Revert "C++ wrapper for VideoDecoder and VideoDecoderFactory interfaces."
This reverts commit ef4342f21ba9448138fc7d22482f3210cb20fd7e.

Reason for revert: Breaks chromium.webrtc.fyi

Original change's description:
> C++ wrapper for VideoDecoder and VideoDecoderFactory interfaces.
> 
> Bug: webrtc:7760
> Change-Id: I136aff9bcfb9244bb45ec552b5443f4a06b87c27
> Reviewed-on: https://chromium-review.googlesource.com/535475
> Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
> Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#18773}

TBR=magjed@webrtc.org,sakal@webrtc.org

Change-Id: I45810b9f3573074bb52539aa63843d59865c02f2
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: webrtc:7760
Reviewed-on: https://chromium-review.googlesource.com/549337
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18776}
2017-06-27 07:35:42 +00:00
Oleh Prypin
afd52d3777 iOS: Run more tests on real devices
Tests that still need to be enabled:
* apprtcmobile_tests
* audio_decoder_unittests
* rtc_media_unittests
* rtc_unittests
* webrtc_nonparallel_tests

Bug: webrtc:7155
Change-Id: Ic3bc91224dff8b32dc71e356a4ba04b386c92a0f
Reviewed-on: https://chromium-review.googlesource.com/541368
Commit-Queue: Oleh Prypin <oprypin@chromium.org>
Reviewed-by: Henrik Kjellander <kjellander@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#18775}
2017-06-27 07:30:21 +00:00