13507 Commits

Author SHA1 Message Date
kwiberg
f6232b43a1 AcmReceiver: Ask NetEq to delete all decoders at once instead of one by one
It requires a new NetEq method, but it can no longer fail. And we no
longer need to use AcmReceiver::decoders_, which we're trying to
eliminate.

BUG=webrtc:5801

Review-Url: https://codereview.webrtc.org/2342313002
Cr-Commit-Position: refs/heads/master@{#14275}
2016-09-17 17:45:24 +00:00
kwiberg
1e4d8b574c AcmReceiver: Look up last decoder in NetEq's table of decoders
AcmReceiver::decoders_ is now one step closer to being unused.

BUG=webrtc:5801

Review-Url: https://codereview.webrtc.org/2339953002
Cr-Commit-Position: refs/heads/master@{#14274}
2016-09-17 15:40:17 +00:00
magjed
1a7ef1f025 Reland of Optimize Android NV12 capture (patchset #1 id:1 of https://codereview.webrtc.org/2327893002/ )
Reason for revert:
Import breakage has been fixed.

Original issue's description:
> Revert of Optimize Android NV12 capture (patchset #2 id:20001 of https://codereview.webrtc.org/2317443003/ )
>
> Reason for revert:
> Import breakage in g3.
>
> Original issue's description:
> > Optimize Android NV12 capture
> >
> > This CL optimizes the Android capture NV12 -> I420 + scaling code. For
> > example, when the input is 1280x720 and we adapt to 640x360, this CL:
> >  - Reduces conversion time from 3.37 ms to 1.46 ms.
> >  - Reduces memory footprint by 1 MB.
> >
> > BUG=webrtc:6319
> >
> > Committed: https://crrev.com/36d38cbb153e19bdc3c62a750aba6889da40aac2
> > Cr-Commit-Position: refs/heads/master@{#14167}
>
> TBR=sakal@webrtc.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=webrtc:6319
TBR=sakal@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6319

Review-Url: https://codereview.webrtc.org/2332213011
Cr-Commit-Position: refs/heads/master@{#14273}
2016-09-17 09:39:11 +00:00
Magnus Jedvert
7fd92866c3 I420BufferPool: Replace SequencedTaskChecker with RaceChecker
SequencedTaskChecker does not work with the iOS dispatch queue. See bug
for more info.

BUG=webrtc:6367
R=perkj@webrtc.org

Review URL: https://codereview.webrtc.org/2341113005 .

Cr-Commit-Position: refs/heads/master@{#14272}
2016-09-17 09:27:45 +00:00
asapersson
b0c1b4e24d Do not update stream synchronization if no new video packet has been received since last update (e.g. video muted).
BUG=

Review-Url: https://codereview.webrtc.org/2334113004
Cr-Commit-Position: refs/heads/master@{#14271}
2016-09-17 08:00:04 +00:00
Taylor Brandstetter
e5835f5d84 Adding an end-to-end connection time test.
The test uses a fake clock and simulates network and signaling delays in
order to get a repeatable measurement of the time to establish a
connection (including DTLS). This will help ensure that various
optimizations continue to work as expected, and no new delays are
introduced.

This CL depends on: https://codereview.webrtc.org/2140283002/

R=honghaiz@webrtc.org, pthatcher@webrtc.org, skvlad@webrtc.org

Review URL: https://codereview.webrtc.org/2141863003 .

Cr-Commit-Position: refs/heads/master@{#14270}
2016-09-16 22:07:58 +00:00
peah
de65ddc212 This CL renames variables and method and removes some one-line
methods inside the audio processing module for the purpose of
increasing code readability.

BUG=

Review-Url: https://codereview.webrtc.org/2335633002
Cr-Commit-Position: refs/heads/master@{#14269}
2016-09-16 22:02:22 +00:00
Irfan Sheriff
9b7b75324f Avoid max bitrate probing when exponential probing in progress
Avoid starting the max probing when there is an exponential probing session in progress.

BUG=webrtc:6332
R=philipel@webrtc.org, stefan@webrtc.org

Review URL: https://codereview.webrtc.org/2269873002 .

Cr-Commit-Position: refs/heads/master@{#14268}
2016-09-16 18:30:52 +00:00
charujain
b55c434c65 Removed bitrate_controller.h file reference from gn file.
BitrateAllocator was moved from BitrateController logic to Call in
0e7e259ebd

BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2342913004
Cr-Commit-Position: refs/heads/master@{#14267}
2016-09-16 15:48:55 +00:00
ehmaldonado
3d2ea1d2b3 Temporarily remove ios_api_framework from the commit queue.
Temporarily remove ios_api_framework until [1] is ported to GN.
This script is blocking Chromium rolls

[1]: https://cs.chromium.org/chromium/src/third_party/webrtc/build/ios/build_ios_libs.sh?sq=package:chromium&dr=C

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

Review-Url: https://codereview.webrtc.org/2341113004
Cr-Commit-Position: refs/heads/master@{#14266}
2016-09-16 14:56:31 +00:00
perkj
a49cbd3e24 Replace VideoCapturerInput with VideoSinkInterface.
Adds new method VideoSendStream::SetSource(rtc::VideoSourceInterface* and VieEncoder::SetSource(rtc::VideoSourceInterface*)

This is the first step needed in order for the ViEEncoder to request downscaling using rtc::VideoSinkWants instead of separately reporting CPU overuse and internally doing downscaling due to QP values

This cl
Revert "Revert of Replace interface VideoCapturerInput with VideoSinkInterface. (patchset #13 id:280001 of https://codereview.webrtc.org/2257413002/ )"

This reverts commit 9fdbda6aa3f66ea872344c22e79b23361047cbab.

and fix the problem in the original cl in video_quality_test.cc

BUG=webrtc:5687
TBR=mflodman@webrtc.org

Review-Url: https://codereview.webrtc.org/2348533002
Cr-Commit-Position: refs/heads/master@{#14265}
2016-09-16 14:53:48 +00:00
sakal
80a5bf1499 Reland of Fix android_junit_tests and add a GN target for them. (patchset #1 id:1 of https://codereview.webrtc.org/2345163003/ )
Reason for revert:
Bring back the include I managed to accidentally remove.

Original issue's description:
> Revert of Fix android_junit_tests and add a GN target for them. (patchset #3 id:90001 of https://codereview.webrtc.org/2344133002/ )
>
> Reason for revert:
> Breaks bots.
>
> Original issue's description:
> > Reland of Fix android_junit_tests and add a GN target for them. (patchset #1 id:1 of https://codereview.webrtc.org/2341213003/ )
> >
> > Reason for revert:
> > Fix the issue.
> >
> > Original issue's description:
> > > Revert of Fix android_junit_tests and add a GN target for them. (patchset #1 id:20001 of https://codereview.webrtc.org/2346793002/ )
> > >
> > > Reason for revert:
> > > Breaks WebRTC in Chrome on Android:
> > >
> > > https://build.chromium.org/p/chromium.webrtc.fyi/waterfall?builder=Android%20Builder%20(dbg)
> > >
> > > Original issue's description:
> > > > Fix android_junit_tests and add a GN target for them.
> > > >
> > > > BUG=webrtc:6365
> > > > NOTRY=True
> > > >
> > > > Committed: https://crrev.com/bb716daea73889517f996aa29f867563ed63d58a
> > > > Cr-Commit-Position: refs/heads/master@{#14241}
> > >
> > > TBR=magjed@webrtc.org,kjellander@webrtc.org,sakal@webrtc.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=webrtc:6365
> > >
> > > Committed: https://crrev.com/9adb1ff9439aecf4e8ac3972a631bb74df2b6868
> > > Cr-Commit-Position: refs/heads/master@{#14253}
> >
> > TBR=magjed@webrtc.org,kjellander@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:6365
> >
> > Committed: https://crrev.com/51fe1d805d19bf7c79aad46049d040fae1ae6953
> > Cr-Commit-Position: refs/heads/master@{#14254}
>
> TBR=magjed@webrtc.org,kjellander@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:6365
>
> Committed: https://crrev.com/1431d49ea073d88b65303ab843545678fbb6e9f9
> Cr-Commit-Position: refs/heads/master@{#14255}

TBR=magjed@webrtc.org,kjellander@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:6365

Review-Url: https://codereview.webrtc.org/2348663003
Cr-Commit-Position: refs/heads/master@{#14264}
2016-09-16 14:22:20 +00:00
sakal
71b8393b6a Remove name parameter from HistogramAdd function.
This name is only used for a DCHECK. Having it as a parameter leads to unnecessary string copying even on release builds.

This CL instead adds a GetHistogramName function that is only called on debug builds.

Checking if pointer is null is also moved outside HistogramAdd function. Having it there is confusing since Chromium implementation doesn't have it there.

BUG=webrtc:6329

Review-Url: https://codereview.webrtc.org/2337883003
Cr-Commit-Position: refs/heads/master@{#14263}
2016-09-16 13:56:20 +00:00
henrik.lundin
a6974d7f7e NetEq: Remove a test printout
BUG=none
TBR=minyue@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2342343002
Cr-Commit-Position: refs/heads/master@{#14262}
2016-09-16 13:11:38 +00:00
sakal
57b490004d Change AppRTCDemoJUnitTest to use LocalRobolectricTestRunner.
It was previously using org.robolectric.RobolectricTestRunner. Due to
changes in Chromium this no longer works. This CL fixes the issue.

BUG=webrtc:6363
NOTRY=True

Review-Url: https://codereview.webrtc.org/2342783002
Cr-Commit-Position: refs/heads/master@{#14261}
2016-09-16 13:02:52 +00:00
minyue
186cd06512 Adding DTX controller to audio network adaptor.
BUG=webrtc:6303

Review-Url: https://codereview.webrtc.org/2320093002
Cr-Commit-Position: refs/heads/master@{#14260}
2016-09-16 12:54:47 +00:00
nisse
3011627142 Revert of Update test code to use I420Buffer when writing pixel data. (patchset #2 id:140001 of https://codereview.webrtc.org/2342783003/ )
Reason for revert:
I was too impatient; this made android builds fail instead. See https://build.chromium.org/p/client.webrtc/builders/Linux32%20ARM/builds/585/steps/compile/logs/stdio

Original issue's description:
> Reland of Update test code to use I420Buffer when writing pixel data. (patchset #1 id:1 of https://codereview.webrtc.org/2342123003/ )
>
> Reason for revert:
> Intending to fix problem and reland.
>
> Original issue's description:
> > Revert of Update test code to use I420Buffer when writing pixel data. (patchset #5 id:80001 of https://codereview.webrtc.org/2333373007/ )
> >
> > Reason for revert:
> > Fails 64-bit windows builds, it turns out I missed some of the needed int/size_t casts. Example https://build.chromium.org/p/client.webrtc/waterfall?builder=Win64%20Release
> >
> > Hope our windows try bots get back in working shape soon.
> >
> > Original issue's description:
> > > Update test code to use I420Buffer when writing pixel data.
> > >
> > > VideoFrameBuffer and VideoFrame will become immutable.
> > >
> > > BUG=webrtc:5921
> > > R=magjed@webrtc.org, phoglund@webrtc.org
> > >
> > > Committed: https://crrev.com/280ad1514e44bf6717e5871526dd4632f759eb3d
> > > Cr-Commit-Position: refs/heads/master@{#14249}
> >
> > TBR=phoglund@webrtc.org,palmkvist@webrtc.org,magjed@webrtc.org
> > # Skipping CQ checks because original CL landed less than 1 days ago.
> > NOPRESUBMIT=true
> > NOTREECHECKS=true
> > NOTRY=true
> > BUG=webrtc:5921
> >
> > Committed: https://crrev.com/fbf14607267adf03d235273283ca452a1e564861
> > Cr-Commit-Position: refs/heads/master@{#14251}
>
> TBR=phoglund@webrtc.org,palmkvist@webrtc.org,magjed@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:5921
>
> Committed: https://crrev.com/d21534a8cfe636bbcf3d7bb151945590abc92b2a
> Cr-Commit-Position: refs/heads/master@{#14258}

TBR=phoglund@webrtc.org,palmkvist@webrtc.org,magjed@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5921

Review-Url: https://codereview.webrtc.org/2343083002
Cr-Commit-Position: refs/heads/master@{#14259}
2016-09-16 12:45:15 +00:00
nisse
d21534a8cf Reland of Update test code to use I420Buffer when writing pixel data. (patchset #1 id:1 of https://codereview.webrtc.org/2342123003/ )
Reason for revert:
Intending to fix problem and reland.

Original issue's description:
> Revert of Update test code to use I420Buffer when writing pixel data. (patchset #5 id:80001 of https://codereview.webrtc.org/2333373007/ )
>
> Reason for revert:
> Fails 64-bit windows builds, it turns out I missed some of the needed int/size_t casts. Example https://build.chromium.org/p/client.webrtc/waterfall?builder=Win64%20Release
>
> Hope our windows try bots get back in working shape soon.
>
> Original issue's description:
> > Update test code to use I420Buffer when writing pixel data.
> >
> > VideoFrameBuffer and VideoFrame will become immutable.
> >
> > BUG=webrtc:5921
> > R=magjed@webrtc.org, phoglund@webrtc.org
> >
> > Committed: https://crrev.com/280ad1514e44bf6717e5871526dd4632f759eb3d
> > Cr-Commit-Position: refs/heads/master@{#14249}
>
> TBR=phoglund@webrtc.org,palmkvist@webrtc.org,magjed@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:5921
>
> Committed: https://crrev.com/fbf14607267adf03d235273283ca452a1e564861
> Cr-Commit-Position: refs/heads/master@{#14251}

TBR=phoglund@webrtc.org,palmkvist@webrtc.org,magjed@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5921

Review-Url: https://codereview.webrtc.org/2342783003
Cr-Commit-Position: refs/heads/master@{#14258}
2016-09-16 12:38:45 +00:00
sakal
ea938c0c49 Remove Android tests GYP target.
BUG=webrtc:6365
NOTRY=True

Review-Url: https://codereview.webrtc.org/2345743004
Cr-Commit-Position: refs/heads/master@{#14257}
2016-09-16 12:21:15 +00:00
phoglund
667bd07bd3 Enable turn, sdp, pseudotcp and stun parse/validator fuzzers.
These were blocked on GN work; should be good to go
now. If they break the WebRTC FYI bots, there's more
work to be done. Verified they build locally at least.

Setting no-try because all bots went green except broken android bots.

BUG=6368
NOTRY=true

Review-Url: https://codereview.webrtc.org/2342843002
Cr-Commit-Position: refs/heads/master@{#14256}
2016-09-16 12:05:44 +00:00
sakal
1431d49ea0 Revert of Fix android_junit_tests and add a GN target for them. (patchset #3 id:90001 of https://codereview.webrtc.org/2344133002/ )
Reason for revert:
Breaks bots.

Original issue's description:
> Reland of Fix android_junit_tests and add a GN target for them. (patchset #1 id:1 of https://codereview.webrtc.org/2341213003/ )
>
> Reason for revert:
> Fix the issue.
>
> Original issue's description:
> > Revert of Fix android_junit_tests and add a GN target for them. (patchset #1 id:20001 of https://codereview.webrtc.org/2346793002/ )
> >
> > Reason for revert:
> > Breaks WebRTC in Chrome on Android:
> >
> > https://build.chromium.org/p/chromium.webrtc.fyi/waterfall?builder=Android%20Builder%20(dbg)
> >
> > Original issue's description:
> > > Fix android_junit_tests and add a GN target for them.
> > >
> > > BUG=webrtc:6365
> > > NOTRY=True
> > >
> > > Committed: https://crrev.com/bb716daea73889517f996aa29f867563ed63d58a
> > > Cr-Commit-Position: refs/heads/master@{#14241}
> >
> > TBR=magjed@webrtc.org,kjellander@webrtc.org,sakal@webrtc.org
> > # Skipping CQ checks because original CL landed less than 1 days ago.
> > NOPRESUBMIT=true
> > NOTREECHECKS=true
> > NOTRY=true
> > BUG=webrtc:6365
> >
> > Committed: https://crrev.com/9adb1ff9439aecf4e8ac3972a631bb74df2b6868
> > Cr-Commit-Position: refs/heads/master@{#14253}
>
> TBR=magjed@webrtc.org,kjellander@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:6365
>
> Committed: https://crrev.com/51fe1d805d19bf7c79aad46049d040fae1ae6953
> Cr-Commit-Position: refs/heads/master@{#14254}

TBR=magjed@webrtc.org,kjellander@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:6365

Review-Url: https://codereview.webrtc.org/2345163003
Cr-Commit-Position: refs/heads/master@{#14255}
2016-09-16 11:34:03 +00:00
sakal
51fe1d805d Reland of Fix android_junit_tests and add a GN target for them. (patchset #1 id:1 of https://codereview.webrtc.org/2341213003/ )
Reason for revert:
Fix the issue.

Original issue's description:
> Revert of Fix android_junit_tests and add a GN target for them. (patchset #1 id:20001 of https://codereview.webrtc.org/2346793002/ )
>
> Reason for revert:
> Breaks WebRTC in Chrome on Android:
>
> https://build.chromium.org/p/chromium.webrtc.fyi/waterfall?builder=Android%20Builder%20(dbg)
>
> Original issue's description:
> > Fix android_junit_tests and add a GN target for them.
> >
> > BUG=webrtc:6365
> > NOTRY=True
> >
> > Committed: https://crrev.com/bb716daea73889517f996aa29f867563ed63d58a
> > Cr-Commit-Position: refs/heads/master@{#14241}
>
> TBR=magjed@webrtc.org,kjellander@webrtc.org,sakal@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:6365
>
> Committed: https://crrev.com/9adb1ff9439aecf4e8ac3972a631bb74df2b6868
> Cr-Commit-Position: refs/heads/master@{#14253}

TBR=magjed@webrtc.org,kjellander@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:6365

Review-Url: https://codereview.webrtc.org/2344133002
Cr-Commit-Position: refs/heads/master@{#14254}
2016-09-16 11:28:07 +00:00
henrika
9adb1ff943 Revert of Fix android_junit_tests and add a GN target for them. (patchset #1 id:20001 of https://codereview.webrtc.org/2346793002/ )
Reason for revert:
Breaks WebRTC in Chrome on Android:

https://build.chromium.org/p/chromium.webrtc.fyi/waterfall?builder=Android%20Builder%20(dbg)

Original issue's description:
> Fix android_junit_tests and add a GN target for them.
>
> BUG=webrtc:6365
> NOTRY=True
>
> Committed: https://crrev.com/bb716daea73889517f996aa29f867563ed63d58a
> Cr-Commit-Position: refs/heads/master@{#14241}

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

Review-Url: https://codereview.webrtc.org/2341213003
Cr-Commit-Position: refs/heads/master@{#14253}
2016-09-16 11:11:59 +00:00
sakal
f72321aafe Update anroidapp/README for GN build.
BUG=webrtc:6341
NOTRY=True

Review-Url: https://codereview.webrtc.org/2338323005
Cr-Commit-Position: refs/heads/master@{#14252}
2016-09-16 08:35:08 +00:00
nisse
fbf1460726 Revert of Update test code to use I420Buffer when writing pixel data. (patchset #5 id:80001 of https://codereview.webrtc.org/2333373007/ )
Reason for revert:
Fails 64-bit windows builds, it turns out I missed some of the needed int/size_t casts. Example https://build.chromium.org/p/client.webrtc/waterfall?builder=Win64%20Release

Hope our windows try bots get back in working shape soon.

Original issue's description:
> Update test code to use I420Buffer when writing pixel data.
>
> VideoFrameBuffer and VideoFrame will become immutable.
>
> BUG=webrtc:5921
> R=magjed@webrtc.org, phoglund@webrtc.org
>
> Committed: https://crrev.com/280ad1514e44bf6717e5871526dd4632f759eb3d
> Cr-Commit-Position: refs/heads/master@{#14249}

TBR=phoglund@webrtc.org,palmkvist@webrtc.org,magjed@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5921

Review-Url: https://codereview.webrtc.org/2342123003
Cr-Commit-Position: refs/heads/master@{#14251}
2016-09-16 08:32:09 +00:00
Viktor Palmkvist
971eb27e54 Removing, opening and creating files in platform_file and file
BUG=
R=perkj@webrtc.org, sprang@google.com

Review URL: https://codereview.webrtc.org/2347473003 .

Cr-Commit-Position: refs/heads/master@{#14250}
2016-09-16 08:19:33 +00:00
Niels Möller
280ad1514e Update test code to use I420Buffer when writing pixel data.
VideoFrameBuffer and VideoFrame will become immutable.

BUG=webrtc:5921
R=magjed@webrtc.org, phoglund@webrtc.org

Review URL: https://codereview.webrtc.org/2333373007 .

Cr-Commit-Position: refs/heads/master@{#14249}
2016-09-16 08:07:20 +00:00
zijiehe
e9a3c7f43c Wrap ScreenCapturer with ScreenCapturerDifferWrapper
This change is to add an DesktopCapturerOptions accurate_updated_region() with
default value as false to indicate whether a pixel-wise differentiation is
required. And ScreenCapturer::Create() function will wrap the implementation
with ScreenCapturerDifferWrapper.

Chromoting will use this option to filter out unchanged frames.

BUG=314516

Review-Url: https://codereview.webrtc.org/2314323002
Cr-Commit-Position: refs/heads/master@{#14248}
2016-09-16 07:03:20 +00:00
peah
2dc4cdeea7 Correcting the enabling of the level controller in the audio processing simulator
BUG=

Review-Url: https://codereview.webrtc.org/2337133005
Cr-Commit-Position: refs/heads/master@{#14247}
2016-09-16 07:01:39 +00:00
hbos
74e1a4f96a PeerConnection[Interface]::GetStats(RTCStatsCollectorCallback*) added.
New file structure and targets:

rtc_stats_api
  webrtc/api/stats/rtcstats.h
  webrtc/api/stats/rtcstats_objects.h
  webrtc/api/stats/rtcstatsreport.h

rtc_stats (dep on rtc_stats_api)
  webrtc/stats/rtcstats.cc
  webrtc/stats/rtcstats_objects.cc
  webrtc/stats/rtcstatsreport.cc

libjingle_peerconnection (dep on rtc_stats)
  webrtc/api/rtcstatscollector.cc
  webrtc/api/rtcstatscollector.h

Placing rtc_stats_api headers in this separate target instead of
libjingle_peerconnection avoids a circular dependency
libjingle_peerconnection -> rtc_stats -> libjingle_peerconnection

Code changes:

PeerConnectionInterface::GetStats(RTCStatsCollectorCallback*) added for
the new stats collection API. Implemented by PeerConnection.

BUG=chromium:627816

Review-Url: https://codereview.webrtc.org/2331373004
Cr-Commit-Position: refs/heads/master@{#14246}
2016-09-16 06:33:04 +00:00
Taylor Brandstetter
fe7d091f57 Fixing a couple cases that cause ProcessAllMessageQueues to hang.
The two situations are:
1. A thread is in the process of shutting down, so it won't handle any
   more messages.
2. A message queue is cleared before it has a chance to process pending
   messages.

In both of those cases, we should consider processing done at that
point.

R=honghaiz@webrtc.org, pthatcher@webrtc.org

Review URL: https://codereview.webrtc.org/2319303004 .

Cr-Commit-Position: refs/heads/master@{#14245}
2016-09-16 00:47:47 +00:00
Honghai Zhang
9ecb08576e Adding logs to track potential cause of not starting port allocation.
R=deadbeef@webrtc.org, pthatcher@webrtc.org

Review URL: https://codereview.webrtc.org/2324853002 .

Cr-Commit-Position: refs/heads/master@{#14244}
2016-09-15 23:41:12 +00:00
solenberg
fb2c1d0636 Add voe_cmd_test to voice_engine/BUILD.gn (and remove it from voice_engine.gyp, together with the channel_transport gyp target)
BUG=webrtc:6323
NOTRY=True

Review-Url: https://codereview.webrtc.org/2343813003
Cr-Commit-Position: refs/heads/master@{#14243}
2016-09-15 20:12:10 +00:00
sakal
232c56ba9a Add logging available fps ranges to Camera2Session.
R=magjed@webrtc.org

Review-Url: https://codereview.webrtc.org/2340283002
Cr-Commit-Position: refs/heads/master@{#14242}
2016-09-15 19:31:21 +00:00
sakal
bb716daea7 Fix android_junit_tests and add a GN target for them.
BUG=webrtc:6365
NOTRY=True

Review-Url: https://codereview.webrtc.org/2346793002
Cr-Commit-Position: refs/heads/master@{#14241}
2016-09-15 19:27:58 +00:00
Danil Chapovalov
530b3f5d06 Merge RtcpReceiver::Handle<Packet>Item functions into Handle<Packet>
As a preparation to replace parsing implementation.

BUG=webrtc:5260
R=philipel@webrtc.org

Review URL: https://codereview.webrtc.org/2337283003 .

Cr-Commit-Position: refs/heads/master@{#14240}
2016-09-15 16:41:12 +00:00
perkj
9fdbda6aa3 Revert of Replace interface VideoCapturerInput with VideoSinkInterface. (patchset #13 id:280001 of https://codereview.webrtc.org/2257413002/ )
Reason for revert:
Fails on Mac and Linux webrtc_perf_tests

Original issue's description:
> Replace VideoCapturerInput with VideoSinkInterface.
> Adds new method VideoSendStream::SetSource(rtc::VideoSourceInterface* and VieEncoder::SetSource(rtc::VideoSourceInterface*)
>
> This is the first step needed in order for the ViEEncoder to request downscaling using rtc::VideoSinkWants instead of separately reporting CPU overuse and internally doing downscaling due to QP values.
>
> BUG=webrtc:5687
> // Android CQ seems broken.
> NOTRY=true
>
> Committed: https://crrev.com/95a226f55ae7e32b83a6ba96232fb105a014dc6c
> Cr-Commit-Position: refs/heads/master@{#14238}

TBR=nisse@webrtc.org,sprang@webrtc.org,mflodman@webrtc.org,stefan@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5687

Review-Url: https://codereview.webrtc.org/2344923002
Cr-Commit-Position: refs/heads/master@{#14239}
2016-09-15 16:19:28 +00:00
perkj
95a226f55a Replace VideoCapturerInput with VideoSinkInterface.
Adds new method VideoSendStream::SetSource(rtc::VideoSourceInterface* and VieEncoder::SetSource(rtc::VideoSourceInterface*)

This is the first step needed in order for the ViEEncoder to request downscaling using rtc::VideoSinkWants instead of separately reporting CPU overuse and internally doing downscaling due to QP values.

BUG=webrtc:5687
// Android CQ seems broken.
NOTRY=true

Review-Url: https://codereview.webrtc.org/2257413002
Cr-Commit-Position: refs/heads/master@{#14238}
2016-09-15 15:57:26 +00:00
Danil Chapovalov
91511f13e1 Split RtcpReceiver::HandleSenderReceiverReport into two functions
as a preparation to replace parsing implementation

BUG=webrtc:5260
R=philipel@webrtc.org

Review URL: https://codereview.webrtc.org/2340763002 .

Cr-Commit-Position: refs/heads/master@{#14237}
2016-09-15 14:24:42 +00:00
nisse
edebf45712 Use I420Buffer rather than VideoFrameBuffer when writing pixels.
Prepares for deleting VideoFrameBuffer::MutableDataY{,U,V}. objc
changes extracted from cl https://codereview.webrtc.org/2278883002/.

BUG=webrtc:5921

Review-Url: https://codereview.webrtc.org/2346453002
Cr-Commit-Position: refs/heads/master@{#14236}
2016-09-15 14:20:48 +00:00
hbos
8faf9e047e Removed the const char* (StaticString) type from RTCStatsMember.
std::string is all we need. const char* is an annoying special case
because they can't be compared with ==. Having two different string
types was a premature optimization.

BUG=chromium:627816
NOTRY=True

Review-Url: https://codereview.webrtc.org/2340303002
Cr-Commit-Position: refs/heads/master@{#14235}
2016-09-15 13:52:50 +00:00
Magnus Jedvert
4ed5b9f62d Android SurfaceViewRenderer: Create EGL context on render thread
This CL avoids eglMakeCurrent failing on some problematic Marvel based
Jelly Bean devices.

BUG=webrtc:6350
R=perkj@webrtc.org, sakal@webrtc.org

Review URL: https://codereview.webrtc.org/2339573002 .

Cr-Commit-Position: refs/heads/master@{#14234}
2016-09-15 13:30:29 +00:00
maxmorin
ec62374ccd Reland of Add arraysize to rtc_base_approved. Remove dependency of audio_device on rtc_base. (patchset #1 id:1 of https://codereview.webrtc.org/2340253003/ )
Reason for revert:
Fix: let audio_device depend on rtc_base on IOS.

Original issue's description:
> Revert of Add arraysize to rtc_base_approved. Remove dependency of audio_device on rtc_base. (patchset #1 id:1 of https://codereview.webrtc.org/2346763002/ )
>
> Reason for revert:
> Breaks iOS
>
> Original issue's description:
> > Add arraysize to rtc_base_approved. Remove dependency of audio_device on rtc_base.
> >
> > BUG=webrtc:3806
> > NOTRY=True
> >
> > Committed: https://crrev.com/100c9d02669910bce06099b3cc1eaad60fd661dd
> > Cr-Commit-Position: refs/heads/master@{#14223}
>
> TBR=kjellander@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:3806
>
> Committed: https://crrev.com/89fb9201b70616a1c33e277f38bf9367112536e8
> Cr-Commit-Position: refs/heads/master@{#14224}

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

Review-Url: https://codereview.webrtc.org/2340233003
Cr-Commit-Position: refs/heads/master@{#14233}
2016-09-15 12:11:59 +00:00
stefan
0a6e0dc471 Disable all screen-capturer tests
ScreenCapturerTest.CaptureUpdatedRegion* tests are flaky and are running in the
wrong executable.

BUG=webrtc:6366, chromium:647067
NOTRY=True

Review-Url: https://codereview.webrtc.org/2342823002
Cr-Commit-Position: refs/heads/master@{#14232}
2016-09-15 12:04:41 +00:00
kjellander
17f008bf33 GYP: Remove targets inside include_tests==1 that are converted to GN.
Remove a large number of targets that are no longer built, to reduce maintenance.
Only targets that have a GN version were removed.

BUG=webrtc:6323
NOTRY=True
NOPRESUBMIT=True

Review-Url: https://codereview.webrtc.org/2340773003
Cr-Commit-Position: refs/heads/master@{#14231}
2016-09-15 11:57:39 +00:00
ehmaldonado
8b28b8017f Assume ProjectRootPath() equals ../.. in Desktop
This way we don't have to rely on the existence of DEPS, and the tests
can be run in swarming bots (which don't have a checkout and therefore
don't have a DEPS file).

This seems to be where Chromium is assumming the project root path to
be.

NOTRY=True
BUG=chromium:497757

Review-Url: https://codereview.webrtc.org/2340773002
Cr-Commit-Position: refs/heads/master@{#14230}
2016-09-15 11:45:55 +00:00
philipel
d268d6ffbe Stash non layer-sync frames if we have not yet received an earlier frame for this layer.
In VP8 the assumption is that a non layer-sync frame depends on all previous
frames on temporal layers less or equal to this frames temporal layer.

BUG=webrtc:5514
R=stefan@webrtc.org

Review URL: https://codereview.webrtc.org/2306513003 .

Cr-Commit-Position: refs/heads/master@{#14229}
2016-09-15 11:43:30 +00:00
kthelgason
ebc34e78db [GN] Add rtc_sdk_framework_objc target to GN
The build artifacts don't look completely identical to the ones generated
by the GYP targets, but manual review shows the same symbols are exported.

On iOS,  the version generated by the GN follows convention, including
a "Headers" directory, and the .modulemap file. I think this is preferred
over the gyp version.

BUG=webrtc:6320
NOTRY=True
TESTED=Run AppRTCDemo on iOS + Mac and verified with nm that they export the same symbols.

Review-Url: https://codereview.webrtc.org/2340633003
Cr-Commit-Position: refs/heads/master@{#14228}
2016-09-15 11:30:21 +00:00
solenberg
11ace15c19 The VoE functionality to apply receive-side processing to VoE channels is unused. I'm removing it so we can avoid instantiating a full APM per channel (and thus also for webrtc::AudioSendStream and webrtc::AudioReceiveStream), and then never use it.
The following APIs are removed from VoEAudioProcessing:

  virtual int SetRxNsStatus(int channel,
                            bool enable,
                            NsModes mode = kNsUnchanged) = 0;
  virtual int GetRxNsStatus(int channel, bool& enabled, NsModes& mode) = 0;
  virtual int SetRxAgcStatus(int channel,
                             bool enable,
                             AgcModes mode = kAgcUnchanged) = 0;
  virtual int GetRxAgcStatus(int channel, bool& enabled, AgcModes& mode) = 0;
  virtual int SetRxAgcConfig(int channel, AgcConfig config) = 0;
  virtual int GetRxAgcConfig(int channel, AgcConfig& config) = 0;
  virtual int RegisterRxVadObserver(int channel,
                                    VoERxVadCallback& observer) = 0;
  virtual int DeRegisterRxVadObserver(int channel) = 0;

BUG=webrtc:4690

Review-Url: https://codereview.webrtc.org/2295113002
Cr-Commit-Position: refs/heads/master@{#14227}
2016-09-15 11:29:21 +00:00
kjellander
70d01242f8 MB: Change Android Clang to build shared instead of static.
A recent build error on Android revealed that we're always doing
static builds for the Android Debug builders. This changes one
to be building shared library instead (is_component_build=true),
which should prevent such breakages in the future.

BUG=webrtc:6360
NOTRY=True

Review-Url: https://codereview.webrtc.org/2342033002
Cr-Commit-Position: refs/heads/master@{#14226}
2016-09-15 10:42:34 +00:00