18359 Commits

Author SHA1 Message Date
oprypin
d0727bfd45 Fix NSInteger formatting warning from clang 6
"error: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead"
Casting to long is already a common practice in the code base.

This has been blocking the Chromium roll which contains an update to clang 6.0.0

BUG=None

Review-Url: https://codereview.webrtc.org/2987693002
Cr-Commit-Position: refs/heads/master@{#19127}
2017-07-25 09:04:58 +00:00
oprypin
1e64cfae53 Fix autoroller in accordance to upstream change
This broke WebRTC's presubmit
e79ddeaabf%5E%21/

GClientKeywords has been removed and replaced with a more direct substitution.

BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2989603002
Cr-Commit-Position: refs/heads/master@{#19126}
2017-07-25 08:57:17 +00:00
korniltsev.anatoly
ec390b5dfb When a track is added/removed directly to MediaStream notify observer->OnRenegotionNeeded
There is an inconsistency in behavior of PeerConnection.
When I remove track from PeerConnection observer->OnRenegotiationNeeded is called, however if I remove track from MediaStream then there is no notification to renegotiate.
This patch adds missing OnRenegotiationNeeded calls.

BUG=webrtc:7966

Review-Url: https://codereview.webrtc.org/2977493002
Cr-Commit-Position: refs/heads/master@{#19125}
2017-07-25 00:00:25 +00:00
ehmaldonado
d083e851f6 Remove traces from {send,receive}_statistics_proxy.cc
These traces will be traced instead when getStats()
is called by JavaScript.

BUG=chromium:653087

Review-Url: https://codereview.webrtc.org/2972393002
Cr-Commit-Position: refs/heads/master@{#19124}
2017-07-24 16:00:13 +00:00
philipel
65e1f9476a Throttle log message in FrameBuffer.
BUG=webrtc:7551

Review-Url: https://codereview.webrtc.org/2987673002
Cr-Commit-Position: refs/heads/master@{#19123}
2017-07-24 15:26:53 +00:00
danilchap
c43d565873 Remove setting configuration parameter to itself.
when creating RtpRtcp module for video send stream.

BUG=webrtc:8016

Review-Url: https://codereview.webrtc.org/2979363002
Cr-Commit-Position: refs/heads/master@{#19122}
2017-07-24 15:13:34 +00:00
magjed
cc8b906467 iOS AppRTCMobile: Close peerconnection when disconnecting
We currently don't close the peerconnection before deallocing. That
could potentially cause race conditions if it's still being processed on
other threads.

BUG=webrtc:7976

Review-Url: https://codereview.webrtc.org/2976983002
Cr-Commit-Position: refs/heads/master@{#19121}
2017-07-24 14:32:33 +00:00
Alex Loiko
e029d99f19 Integer overflow bug in low_cut_filter.
A multiplication result doesn't fit in an int32_t type. This change
rewrites the code to avoid the overflowing multiplication.

Here y[0], y[1] are int16 numbers containing the (truncated) topmost
18 and (scaled Q2 to use the full int16) the least significant 13
bits of a 32-bit value. The change makes y[1] to be calculated 
directly instead of using y[0] as an intermediate value. 

TESTED=this change passes the bit exactness tests, and has also been 
running on the audio_processing fuzzer with a CHECK comparing the
old and new value.

Bug: chromium:747202
Change-Id: Iafc69eb7391d494afdadf65f5b7f399a57bbe9a8
Reviewed-on: https://chromium-review.googlesource.com/580907
Reviewed-by: Minyue Li <minyue@webrtc.org>
Commit-Queue: Alex Loiko <aleloi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19120}
2017-07-24 11:03:46 +00:00
ehmaldonado
fe43df155c Ignore NewApi Android Lint warning + Roll chromium_revision
Ignore NewApi and InlinedApi Android Lint warnings.
They will be enabled once platform-tools is rolled. See crbug.com/739746.

This is needed because of 6e3237729a

Roll chromium_revision 1238950005..fd8f995919 (488218:488572)

Change log: 1238950005..fd8f995919
Full diff: 1238950005..fd8f995919

Changed dependencies:
* src/base: 9590d17c3d..ff92886fed
* src/build: 36a077c7b3..995d75919a
* src/ios: 342e327240..d8aae3bcad
* src/testing: 718dcd6f4b..639e83fbfc
* src/third_party: 8ac1939776..6fc19207c5
* src/third_party/catapult: c7c5420fbc..e11a4d0d82
* src/third_party/ffmpeg: d19b0ad9b2..97ebed6795
* src/tools: 030de9aca2..50cda24eac
DEPS diff: 1238950005..fd8f995919/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2986603002
Cr-Commit-Position: refs/heads/master@{#19119}
2017-07-24 09:51:58 +00:00
flim
bf8202185c Disable some Opus tests pending an update
These tests will be reenabled and updated after Opus has been updated in
Chromium and rolled into WebRTC.

BUG=737323, webrtc:8024

Review-Url: https://codereview.webrtc.org/2963673002
Cr-Commit-Position: refs/heads/master@{#19118}
2017-07-24 09:17:38 +00:00
korniltsev.anatoly
f3a48ab6dc Delete unused field from AndroidVideoTrackSource
BUG=None

Review-Url: https://codereview.webrtc.org/2974713002
Cr-Commit-Position: refs/heads/master@{#19117}
2017-07-24 08:06:39 +00:00
Zijie He
48e4d6d609 Add zijiehe@chromium.org as OWNERS in WebRTC DesktopCapturer related logic
Bug: chromium:747738
Change-Id: Iff83e89862ee190d0442cb3463c1dea0b87eb4b4
Reviewed-on: https://chromium-review.googlesource.com/582028
Commit-Queue: Zijie He <zijiehe@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19116}
2017-07-23 21:37:59 +00:00
Zijie He
cd66a771ed Create new constructors and fields to support a better mouse cursor monitor
Current implementation requires MouseCursorMonitor to understand the SourceId of
a DesktopCapturer implementation. But SourceId has different meanings across
various DesktopCapturer implementations. So this change decouples the
MouseCursorMonitor from DesktopCapturer, i.e. it does not need to know
DesktopCapturer anymore, instead it always returns the absolute position of the
mouse cursor. In DesktopAndCursorComposer, it can use the newly added
DesktopFrame::top_left() to decide the relative position of mouse cursor and the
DesktopFrame.

Bug: webrtc:7950
Change-Id: Idfbde5cb0f79ff0acf4ad1e9a0ac5126f1bb2e98
Reviewed-on: https://chromium-review.googlesource.com/575315
Commit-Queue: Zijie He <zijiehe@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19115}
2017-07-21 22:13:35 +00:00
deadbeef
817c8af52a Revert of Move "max IPv6 networks" logic to BasicPortAllocator, and fix sorting. (patchset #2 id:20001 of https://codereview.webrtc.org/2983213002/ )
Reason for revert:
Breaks IpcNetworkManagerTest.TestMergeNetworkList, because it has built-in assumptions about network ordering that it shouldn't have. Will reland after fixing that test.

Original issue's description:
> Move "max IPv6 networks" logic to BasicPortAllocator, and fix sorting.
>
> This CL moves the responsibility for restricting the number of IPv6
> interfaces used for ICE to BasicPortAllocator. This is the right place
> to do it in the first place; it's where all the rest of the filtering
> occurs. And NetworkManager shouldn't need to know about ICE limitations;
> only the ICE classes should.
>
> Part of the reason I'm doing this is that I want to add a
> "max_ipv6_networks" API to RTCConfiguration, so that applications can
> override the default easily (see linked bug). But that means that
> PeerConnection would need to be able to call "set_max_ipv6_networks" on
> the underlying object that does the filtering, and that method isn't
> available on the "NetworkManager" base class. So rather than adding
> another method to a place it doesn't belong, I'm moving it to the place
> it does belong.
>
> In the process, I noticed that "CompareNetworks" is inconsistent with
> "SortNetworks"; the former orders interfaces alphabetically, and the
> latter reverse-alphabetically. I believe this was unintentional, and
> results in undesirable behavior (like "eth1" being preferred over
> "eth0"), so I'm fixing it and adding a test.
>
> BUG=webrtc:7703
>
> Review-Url: https://codereview.webrtc.org/2983213002
> Cr-Commit-Position: refs/heads/master@{#19112}
> Committed: ad9561404c

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

Review-Url: https://codereview.webrtc.org/2984853002
Cr-Commit-Position: refs/heads/master@{#19114}
2017-07-21 19:59:46 +00:00
Steve Anton
d14d9f7414 Use array declaration for extension URIs.
Allows using sizeof() on the class constants and reduces space usage by
a pointer.

Bug: None
Change-Id: Ie919b13094903d50bdadc92b23a5aa5b6cc100ec
Reviewed-on: https://chromium-review.googlesource.com/581878
Reviewed-by: Tommi <tommi@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19113}
2017-07-21 19:36:14 +00:00
deadbeef
ad9561404c Move "max IPv6 networks" logic to BasicPortAllocator, and fix sorting.
This CL moves the responsibility for restricting the number of IPv6
interfaces used for ICE to BasicPortAllocator. This is the right place
to do it in the first place; it's where all the rest of the filtering
occurs. And NetworkManager shouldn't need to know about ICE limitations;
only the ICE classes should.

Part of the reason I'm doing this is that I want to add a
"max_ipv6_networks" API to RTCConfiguration, so that applications can
override the default easily (see linked bug). But that means that
PeerConnection would need to be able to call "set_max_ipv6_networks" on
the underlying object that does the filtering, and that method isn't
available on the "NetworkManager" base class. So rather than adding
another method to a place it doesn't belong, I'm moving it to the place
it does belong.

In the process, I noticed that "CompareNetworks" is inconsistent with
"SortNetworks"; the former orders interfaces alphabetically, and the
latter reverse-alphabetically. I believe this was unintentional, and
results in undesirable behavior (like "eth1" being preferred over
"eth0"), so I'm fixing it and adding a test.

BUG=webrtc:7703

Review-Url: https://codereview.webrtc.org/2983213002
Cr-Commit-Position: refs/heads/master@{#19112}
2017-07-21 18:03:53 +00:00
Steve Anton
a3251dd83f Add parsing/serializing for MID RTP header extension.
This is the first in a series of CLs to add support for media
identification as part of unified plan SDP.

Bug: webrtc:4050
Change-Id: I0eb5639d240a9a1412c2b047a33d5112e4901f26
Reviewed-on: https://chromium-review.googlesource.com/576374
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Peter Thatcher <pthatcher@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19111}
2017-07-21 17:33:25 +00:00
henrika
3296256f0e Fixing lint issue
NOTRY=TRUE
BUG=NONE

Review-Url: https://codereview.webrtc.org/2988533002
Cr-Commit-Position: refs/heads/master@{#19110}
2017-07-21 14:28:41 +00:00
henrika
cfccdae57e Adds WebRtcAudioTrack.setAudioTrackUsageAttribute API
TBR=
BUG=b/62058118

Review-Url: https://codereview.webrtc.org/2979423002
Cr-Commit-Position: refs/heads/master@{#19109}
2017-07-21 13:16:02 +00:00
henrika
e29117edbb Modifies closing of AudioTrack resource on Android
TBR=

BUG=b/63161630

Review-Url: https://codereview.webrtc.org/2987583002
Cr-Commit-Position: refs/heads/master@{#19108}
2017-07-21 10:51:42 +00:00
sakal
8ac955be2c Set target API to 18 for MediaCodecUtils.
Target API 18 is needed for texture mode encoding.

BUG=None

Review-Url: https://codereview.webrtc.org/2982403002
Cr-Commit-Position: refs/heads/master@{#19107}
2017-07-21 10:30:02 +00:00
Emad Omara
cb79d23c9b Add common TLS extensions
Bug: webrtc:8019
Change-Id: Ic60e892f0acbe394472319c4d943690828446610
Reviewed-on: https://chromium-review.googlesource.com/580261
Commit-Queue: Emad Omara <emadomara@webrtc.org>
Reviewed-by: Justin Uberti <juberti@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19106}
2017-07-21 00:10:31 +00:00
zstein
3c45186ef2 Move total audio energy and duration tracking to AudioLevel and protect with existing critial section.
BUG=webrtc:7982

Review-Url: https://codereview.webrtc.org/2984473002
Cr-Commit-Position: refs/heads/master@{#19105}
2017-07-20 16:57:42 +00:00
terelius
c4a5c14e8a Print general usage information for event_log_analyzer
Print general usage information for event_log_analyzer (in addition to listing the command line flags) when called with '--help'.

BUG=None

Review-Url: https://codereview.webrtc.org/2986573002
Cr-Commit-Position: refs/heads/master@{#19104}
2017-07-20 15:05:09 +00:00
buildbot
ad908f877e Roll chromium_revision 08a8c75946..1238950005 (488179:488218)
Change log: 08a8c75946..1238950005
Full diff: 08a8c75946..1238950005

Changed dependencies:
* src/base: 675ae3f221..9590d17c3d
* src/build: 37f4a7895d..36a077c7b3
* src/ios: 5325eac8a6..342e327240
* src/third_party: 96dd61da5d..8ac1939776
* src/tools: 4087bb79d6..030de9aca2
DEPS diff: 08a8c75946..1238950005/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2984693002
Cr-Commit-Position: refs/heads/master@{#19103}
2017-07-20 13:24:08 +00:00
buildbot
6d1dfa775e Roll chromium_revision d5f03e2816..08a8c75946 (488153:488179)
Change log: d5f03e2816..08a8c75946
Full diff: d5f03e2816..08a8c75946

Changed dependencies:
* src/base: 824e0355b4..675ae3f221
* src/ios: a9cb7b94b6..5325eac8a6
* src/third_party: 5ab6ee9552..96dd61da5d
* src/tools: 812e9d49fa..4087bb79d6
DEPS diff: d5f03e2816..08a8c75946/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2983963002
Cr-Commit-Position: refs/heads/master@{#19102}
2017-07-20 10:17:48 +00:00
minyue-webrtc
12d30840d8 Correct the calculation of discard rate.
Bug: webrtc:7903
Change-Id: Ib5d6fd882a994dd542b616e5fe1c75710346dd31
Reviewed-on: https://chromium-review.googlesource.com/575057
Commit-Queue: Minyue Li <minyue@webrtc.org>
Reviewed-by: Oskar Sundbom <ossu@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19101}
2017-07-20 09:15:46 +00:00
buildbot
5ed09048f8 Roll chromium_revision 40e1a3f583..d5f03e2816 (488128:488153)
Change log: 40e1a3f583..d5f03e2816
Full diff: 40e1a3f583..d5f03e2816

Changed dependencies:
* src/testing: 357da70df8..718dcd6f4b
* src/third_party: 92223da18f..5ab6ee9552
* src/third_party/ffmpeg: f82eb1989c..d19b0ad9b2
* src/tools: f9c4b584f9..812e9d49fa
DEPS diff: 40e1a3f583..d5f03e2816/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2981363002
Cr-Commit-Position: refs/heads/master@{#19100}
2017-07-20 07:20:18 +00:00
buildbot
6492338bbb Roll chromium_revision d23ce0ebaa..40e1a3f583 (488066:488128)
Change log: d23ce0ebaa..40e1a3f583
Full diff: d23ce0ebaa..40e1a3f583

Changed dependencies:
* src/base: fc64af3cfa..824e0355b4
* src/build: 1f350fb9e7..37f4a7895d
* src/testing: c91aec97aa..357da70df8
* src/third_party: 25312a4274..92223da18f
* src/third_party/catapult: 7de63c2997..c7c5420fbc
* src/tools: c0b7268b31..f9c4b584f9
DEPS diff: d23ce0ebaa..40e1a3f583/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2981353002
Cr-Commit-Position: refs/heads/master@{#19099}
2017-07-20 04:27:57 +00:00
buildbot
817ebf15d4 Roll chromium_revision 281eabf35e..d23ce0ebaa (488004:488066)
Change log: 281eabf35e..d23ce0ebaa
Full diff: 281eabf35e..d23ce0ebaa

Changed dependencies:
* src/base: 9f5201e4c1..fc64af3cfa
* src/build: 1ca7c1462f..1f350fb9e7
* src/ios: 027f94d91d..a9cb7b94b6
* src/testing: 6ef63da453..c91aec97aa
* src/third_party: 0ed9e15911..25312a4274
* src/third_party/catapult: 5f09d557a1..7de63c2997
* src/tools: 16391e60a7..c0b7268b31
DEPS diff: 281eabf35e..d23ce0ebaa/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2985553002
Cr-Commit-Position: refs/heads/master@{#19098}
2017-07-20 01:41:07 +00:00
pbos
1777c5fec5 Move temporal-layer properties to FrameConfig.
Removes keying on pattern_idx inside TemporalLayers implementations for
several properties that are different between screencast temporal layers
and normal/default temporal layers.

This is a step towards sharing PopulateCodecSpecific between the layer
patterns and code deduplication to longer term be able to separate the
packetizer step from encoder settings, so that temporal patterns can be
used for asynchronous hardware encoders where there may be outstanding
frames.

BUG=chromium:702017, webrtc:7349
R=brandtr@webrtc.org

Review-Url: https://codereview.webrtc.org/2924993002
Cr-Commit-Position: refs/heads/master@{#19097}
2017-07-20 00:04:02 +00:00
buildbot
c40e1d3fc7 Roll chromium_revision c86185cb26..281eabf35e (487874:488004)
Change log: c86185cb26..281eabf35e
Full diff: c86185cb26..281eabf35e

Changed dependencies:
* src/base: 72661604d5..9f5201e4c1
* src/build: 3bed50fcd7..1ca7c1462f
* src/ios: cd0863a7ff..027f94d91d
* src/testing: b4e8168a96..6ef63da453
* src/third_party: 800db4d6b8..0ed9e15911
* src/third_party/catapult: 8641322e4a..5f09d557a1
* src/tools: bd3b797bc0..16391e60a7
DEPS diff: c86185cb26..281eabf35e/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2981333002
Cr-Commit-Position: refs/heads/master@{#19096}
2017-07-19 22:21:37 +00:00
zstein
398c3fd6c2 Introduce RtpTransportInternal and SrtpTransport.
SrtpTransport currently just delegates everything to RtpTransport.
Also makes BaseChannel::rtp_transport_ an RtpTransportInternal and constructs an SrtpTransport if srtp is required.

BUG=webrtc:7013

Review-Url: https://codereview.webrtc.org/2981013002
Cr-Commit-Position: refs/heads/master@{#19095}
2017-07-19 20:38:02 +00:00
ehmaldonado
f6a861ab6c Remove remains of webrtc/base
All downstream code have been updated to the new location.

In PRESUBMIT.py:
* Remove webrtc/rtc_base from CPP_BLACKLIST
* Add webrtc/rtc_base to LEGACY_API_DIRS

Fix some duplicated paths in
webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn

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

Review-Url: https://codereview.webrtc.org/2976293002
Cr-Commit-Position: refs/heads/master@{#19094}
2017-07-19 17:40:47 +00:00
buildbot
3c3b110eeb Roll chromium_revision 8779e5365c..c86185cb26 (487834:487874)
Change log: 8779e5365c..c86185cb26
Full diff: 8779e5365c..c86185cb26

Changed dependencies:
* src/base: 301d8613c5..72661604d5
* src/build: 53c0c1a75f..3bed50fcd7
* src/ios: e9391264b9..cd0863a7ff
* src/testing: 9c9b9a3a6a..b4e8168a96
* src/third_party: f74889129a..800db4d6b8
* src/tools: 9f8398f59c..bd3b797bc0
DEPS diff: 8779e5365c..c86185cb26/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2980423002
Cr-Commit-Position: refs/heads/master@{#19093}
2017-07-19 16:19:51 +00:00
tschumim
e76f55e3bf Disable flaky NoBandwidthDropAfterDtx test.
BUG=chromium:744695

Review-Url: https://codereview.webrtc.org/2978323002
Cr-Commit-Position: refs/heads/master@{#19092}
2017-07-19 14:52:47 +00:00
buildbot
a4c2117005 Roll chromium_revision 6ada1228ca..8779e5365c (487809:487834)
Change log: 6ada1228ca..8779e5365c
Full diff: 6ada1228ca..8779e5365c

Changed dependencies:
* src/base: acd6f21afd..301d8613c5
* src/build: ddbb32b392..53c0c1a75f
* src/ios: 0f76340cb8..e9391264b9
* src/third_party: 2087aacb81..f74889129a
* src/tools: 2aab8e9626..9f8398f59c
DEPS diff: 6ada1228ca..8779e5365c/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2984623002
Cr-Commit-Position: refs/heads/master@{#19091}
2017-07-19 13:20:30 +00:00
buildbot
2a0661762f Roll chromium_revision fee38fe5d6..6ada1228ca (487773:487809)
Change log: fee38fe5d6..6ada1228ca
Full diff: fee38fe5d6..6ada1228ca

Changed dependencies:
* src/build: e9c1051db8..ddbb32b392
* src/ios: 181cf4391f..0f76340cb8
* src/third_party: 5ea0e8317d..2087aacb81
* src/tools: a3cfdf6131..2aab8e9626
DEPS diff: fee38fe5d6..6ada1228ca/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2983833002
Cr-Commit-Position: refs/heads/master@{#19090}
2017-07-19 10:17:25 +00:00
sakal
9c0e0fa687 Fix fromAndroidGraphicsMatrix to use column-major order for output.
BUG=webrtc:7760

Review-Url: https://codereview.webrtc.org/2976423002
Cr-Commit-Position: refs/heads/master@{#19089}
2017-07-19 08:24:55 +00:00
saza
b4aa4eb06f Replace WEBRTC_TRACE logging in modules/audio_device/.. mac/ win/
Patch set 1:
Run a script to replace occurrences of WEBRTC_TRACE logging with the new style, on webrtc/modules/audio_device/linux/audio_device_alsa_linux.cc.

Patch set 2:
 - Manually fix log lines not handled by the script
 - Adjust local macros that use WEBRTC_TRACE
 - Adjust some lines to conform with code style
 - Update the included headers
 - Remove the now unused object ID variables

BUG=webrtc:5118

Review-Url: https://codereview.webrtc.org/2985443002
Cr-Commit-Position: refs/heads/master@{#19088}
2017-07-19 08:12:36 +00:00
saza
c58f8c0962 Adds a histogram metric tracking for how long audio RTP packets are sent
through streams related to a call object.

The Call object does not know directly when packets pass through it, only which
AudioSendStreams are used. Each AudioSendStream has a pointer to the Transport
object through which its packets are send.

This CL:
By registering an internal wrapper class, TimedTransport, the AudioSendStream
can stay up-to-date on when packets have passed through its Transport. This
lifetime (as an interval) is then queried by the Call when the AudioSendStream
is destroyed. When Call is destroyed, all streams are guaranteed to have been
destroyed and hence Call is up-to-date on packet activity.

The class TimeInterval keeps the code in Call and AudioSendStream smaller, with
fewer get methods in their APIs and less code for updating values.

Also modifies the unit test for AudioSendStream: it previously enforced that
the stream registers (with its channel proxy) the same transport that it was
constructed with.

BUG=webrtc:7882

Review-Url: https://codereview.webrtc.org/2979833002
Cr-Commit-Position: refs/heads/master@{#19087}
2017-07-19 07:39:19 +00:00
buildbot
e1d4dcaaa9 Roll chromium_revision b845da41ed..fee38fe5d6 (487740:487773)
Change log: b845da41ed..fee38fe5d6
Full diff: b845da41ed..fee38fe5d6

Changed dependencies:
* src/testing: 0e956a8ae4..9c9b9a3a6a
* src/third_party: aaf87eebe8..5ea0e8317d
* src/tools: 129703b7b5..a3cfdf6131
DEPS diff: b845da41ed..fee38fe5d6/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2983053002
Cr-Commit-Position: refs/heads/master@{#19086}
2017-07-19 07:29:25 +00:00
buildbot
dc7feb0d93 Roll chromium_revision 9b8266f849..b845da41ed (487695:487740)
Change log: 9b8266f849..b845da41ed
Full diff: 9b8266f849..b845da41ed

Changed dependencies:
* src/base: d1cde2ef20..acd6f21afd
* src/build: 543ec6e2e1..e9c1051db8
* src/ios: a835cf190f..181cf4391f
* src/third_party: a942e3f5a1..aaf87eebe8
* src/third_party/catapult: a4770ef486..8641322e4a
* src/tools: b61d062f80..129703b7b5
DEPS diff: 9b8266f849..b845da41ed/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2982203002
Cr-Commit-Position: refs/heads/master@{#19085}
2017-07-19 04:22:34 +00:00
buildbot
407657650f Roll chromium_revision 0c6d79c9a3..9b8266f849 (487542:487695)
Change log: 0c6d79c9a3..9b8266f849
Full diff: 0c6d79c9a3..9b8266f849

Changed dependencies:
* src/base: 8411eb80e5..d1cde2ef20
* src/build: 2ff09bd6bc..543ec6e2e1
* src/ios: eaad09c385..a835cf190f
* src/testing: d097039169..0e956a8ae4
* src/third_party: 4b5b490708..a942e3f5a1
* src/third_party/boringssl/src: https://boringssl.googlesource.com/boringssl.git/+log/14308731e5..0e4a448ab8
* src/third_party/catapult: 26f2e66be5..a4770ef486
* src/third_party/icu: b971435d43..1fec0c83e9
* src/tools: c99fa5e590..b61d062f80
DEPS diff: 0c6d79c9a3..9b8266f849/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2980363002
Cr-Commit-Position: refs/heads/master@{#19084}
2017-07-19 01:19:25 +00:00
Bjorn Mellem
0cf9a4a482 Add texture support to HardwareVideoEncoder.
HardwareVideoEncoderFactory can now take an EglBase.Context on creation.
When it does, it creates video encoders in texture mode.  It uses the
COLOR_FormatSurface colorFormat.  It passes the EglBase.Context to the
HardwareVideoEncoder.

The HardwareVideoEncoder sets up an input surface for its codec and handles
incoming frames by drawing them onto the input surface.

BUG=webrtc:7760
R=pthatcher@webrtc.org, sakal@webrtc.org

Review-Url: https://codereview.webrtc.org/2977153003 .
Cr-Commit-Position: refs/heads/master@{#19083}
2017-07-18 20:19:27 +00:00
buildbot
f80f344215 Roll chromium_revision 712d1cf93f..0c6d79c9a3 (487487:487542)
Change log: 712d1cf93f..0c6d79c9a3
Full diff: 712d1cf93f..0c6d79c9a3

Changed dependencies:
* src/base: be132eb6dc..8411eb80e5
* src/ios: 3145ac9eb4..eaad09c385
* src/testing: c5333b4795..d097039169
* src/third_party: bd63adb2f3..4b5b490708
* src/third_party/icu: dfa798fe69..b971435d43
* src/tools: d351a276c4..c99fa5e590
DEPS diff: 712d1cf93f..0c6d79c9a3/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2979223002
Cr-Commit-Position: refs/heads/master@{#19082}
2017-07-18 20:11:05 +00:00
Bjorn Mellem
8fb23618d8 Add texture support to HardwareVideoDecoder.
HardwareVideoDecoder is now a listener for SurfaceTextureHelper.  It takes a
SurfaceTextureHelper on construction.  If it is non-null, it operates in texture
mode instead of byte-buffer mode.

When in texture mode, the HardwareVideoDecoder renders output frames to a Surface,
listens for the texture frame to become available, wraps it in a VideoFrame, and
pushes it to the decoder callback.

As in MediaCodecVideoDecoder, it may queue up to three buffers while waiting for
the surface to become available for rendering.  If more buffers are queued, it will
drop the oldest.

This change also implements the VideoFrame.TextureBuffer and reorganizes code
for wrapping an existing ByteBuffer into an I420Buffer.  This makes it easier
to implement the texture buffer's ToI420() method.

BUG=webrtc:7760
R=pthatcher@webrtc.org, sakal@webrtc.org

Review-Url: https://codereview.webrtc.org/2977643002 .
Cr-Commit-Position: refs/heads/master@{#19081}
2017-07-18 18:33:44 +00:00
thomasanderson
153e204e5d [Webrtc] Reenable libc++ on ubsan
BUG=webrtc:7922
R=ehmaldonado@webrtc.org

Review-Url: https://codereview.webrtc.org/2983583002
Cr-Commit-Position: refs/heads/master@{#19080}
2017-07-18 17:51:04 +00:00
Zijie He
3e45cb577e Mapping screen id from DirectX capturer to GDI capturer
This change ensures DirectX capturer to return the same ScreenId as GDI capturer
for each monitor. So MouseCursoeMonitor can work correctly with the DirectX
capturer.

This is a temporary fix of webrtc:7950.

Bug: webrtc:7950
Change-Id: Icd3f40556701811c21c773a39260a74db43979f3
Reviewed-on: https://chromium-review.googlesource.com/571101
Commit-Queue: Zijie He <zijiehe@chromium.org>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19079}
2017-07-18 17:26:58 +00:00
buildbot
8d2c235b75 Roll chromium_revision c09d9b5e5a..712d1cf93f (487450:487487)
Change log: c09d9b5e5a..712d1cf93f
Full diff: c09d9b5e5a..712d1cf93f

Changed dependencies:
* src/ios: 394d3b401f..3145ac9eb4
* src/testing: 47fe5c6f3e..c5333b4795
* src/third_party: 8bec357dc7..bd63adb2f3
* src/third_party/catapult: 6fc5e41969..26f2e66be5
* src/tools: 1ac025dd3e..d351a276c4
DEPS diff: c09d9b5e5a..712d1cf93f/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2980313002
Cr-Commit-Position: refs/heads/master@{#19078}
2017-07-18 16:19:48 +00:00