18551 Commits

Author SHA1 Message Date
sakal
42f1d6e23a Add --canary flag to gradle project test and update gradle.
This flag enables support for Android Studio 3.0 which allows us to use
Java 8 features. Gradle is updated to version 4.1.0.

BUG=webrtc:8084

Review-Url: https://codereview.webrtc.org/2994123002
Cr-Commit-Position: refs/heads/master@{#19319}
2017-08-11 08:03:13 +00:00
sakal
be910460e0 Add support for capturers to capture VideoFrames.
BUG=webrtc:7749, webrtc:7760

Review-Url: https://codereview.webrtc.org/2982213002
Cr-Commit-Position: refs/heads/master@{#19318}
2017-08-11 07:26:05 +00:00
buildbot
6c27b39fbe Roll chromium_revision 589cc95653..e275be8b44 (493658:493679)
Change log: 589cc95653..e275be8b44
Full diff: 589cc95653..e275be8b44

Changed dependencies:
* src/base: 383e341fa7..8127d3da88
* src/build: 7c87e0ecbc..5fecec2d69
* src/ios: 043998ae09..f9278d7203
* src/testing: 976f9e2638..ad23621f8d
* src/third_party: aeb2ececca..d359f293af
* src/tools: afb9d8916f..e29bfa8342
DEPS diff: 589cc95653..e275be8b44/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2998823002
Cr-Commit-Position: refs/heads/master@{#19317}
2017-08-11 07:19:34 +00:00
buildbot
f3f7f6210b Roll chromium_revision 4c5310e473..589cc95653 (493625:493658)
Change log: 4c5310e473..589cc95653
Full diff: 4c5310e473..589cc95653

Changed dependencies:
* src/ios: 4acf6854cc..043998ae09
* src/third_party: 7b17477fd8..aeb2ececca
* src/third_party/yasm/source/patched-yasm: 7da28c6c7c..b98114e18d
* src/tools: bbed2f316f..afb9d8916f
DEPS diff: 4c5310e473..589cc95653/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/2996863003
Cr-Commit-Position: refs/heads/master@{#19316}
2017-08-11 04:29:33 +00:00
buildbot
577b5b469c Roll chromium_revision 962d584403..4c5310e473 (493555:493625)
Change log: 962d584403..4c5310e473
Full diff: 962d584403..4c5310e473

Changed dependencies:
* src/base: 6c7d2d21f1..383e341fa7
* src/ios: fe3b121872..4acf6854cc
* src/testing: 3888130502..976f9e2638
* src/third_party: ccda985735..7b17477fd8
* src/third_party/boringssl/src: https://boringssl.googlesource.com/boringssl.git/+log/a4cb62f0ae..ca9e8f52f1
* src/tools: e43b7f014a..bbed2f316f
DEPS diff: 962d584403..4c5310e473/DEPS

No update to Clang.

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

Review-Url: https://codereview.webrtc.org/3001533002
Cr-Commit-Position: refs/heads/master@{#19315}
2017-08-11 01:21:44 +00:00
Zijie He
ad501d1988 Implement GetWindowList() on X11
This change implements GetWindowList() on X11. WindowCapturerLinux and
GetWindowUnderPoint() can share the logic of this function.

Bug: webrtc:7950
Change-Id: Ida746840d6f51d31e0470e5ae4955b6f5a4cfaf2
Reviewed-on: https://chromium-review.googlesource.com/606560
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Commit-Queue: Zijie He <zijiehe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#19314}
2017-08-11 01:00:40 +00:00
gyzhou
3abb738199 Update android build instruction for webrtc unity plugin.
BUG=webrtc:8067

Review-Url: https://codereview.webrtc.org/2993423002
Cr-Commit-Position: refs/heads/master@{#19313}
2017-08-10 23:31:22 +00:00
ehmaldonado
4d46a5e1e7 Revert of move linux_internal from the autoroller CQ. (patchset #1 id:1 of https://codereview.webrtc.org/2997523002/ )
Reason for revert:
The credentials for the linux_internal bot are fixed now.

Original issue's description:
> Reland of move linux_internal from the autoroller CQ. (patchset #1 id:1 of https://codereview.webrtc.org/2990233002/ )
>
> Reason for revert:
> linux_internal buildbucket is broken
>
> Original issue's description:
> > Revert of Remove linux_internal from the autoroller CQ. (patchset #1 id:1 of https://codereview.webrtc.org/2985933002/ )
> >
> > Reason for revert:
> > linux_internal now checks that the CL is authored by a googler before executing the tests
> >
> > Original issue's description:
> > > Remove linux_internal from the autoroller CQ.
> > >
> > > The CQ no longer has permission to schedule builds in linux_internal.
> > >
> > > NOTRY=True
> > > TBR=kjellander@webrtc.org
> > > BUG=None
> > >
> > > Review-Url: https://codereview.webrtc.org/2985933002
> > > Cr-Commit-Position: refs/heads/master@{#19178}
> > > Committed: 5ba9730265
> >
> > TBR=mbonadei@webrtc.org,kjellander@webrtc.org,nodir@chromium.org
> > BUG=None
> > NOTRY=True
> >
> > Review-Url: https://codereview.webrtc.org/2990233002
> > Cr-Commit-Position: refs/heads/master@{#19240}
> > Committed: 367aaa7ca5
>
> TBR=mbonadei@webrtc.org,kjellander@webrtc.org,nodir@chromium.org
> # Not skipping CQ checks because original CL landed more than 1 days ago.
> BUG=None
>
> Review-Url: https://codereview.webrtc.org/2997523002
> Cr-Commit-Position: refs/heads/master@{#19260}
> Committed: 81cf5bbff9

TBR=mbonadei@webrtc.org,kjellander@webrtc.org,nodir@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=None

Review-Url: https://codereview.webrtc.org/3001523002
Cr-Commit-Position: refs/heads/master@{#19312}
2017-08-10 22:32:02 +00:00
buildbot
0257ff2cc1 Roll chromium_revision 2e500e8f5a..962d584403 (493481:493555)
Change log: 2e500e8f5a..962d584403
Full diff: 2e500e8f5a..962d584403

Changed dependencies:
* src/base: d18a44302e..6c7d2d21f1
* src/build: c8576db966..7c87e0ecbc
* src/ios: 9d65fe7475..fe3b121872
* src/testing: a8210a5a57..3888130502
* src/third_party: 4b320ab4ee..ccda985735
* src/tools: 0da0d5e2cd..e43b7f014a
DEPS diff: 2e500e8f5a..962d584403/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2999793002
Cr-Commit-Position: refs/heads/master@{#19311}
2017-08-10 22:15:24 +00:00
buildbot
b764d771f9 Roll chromium_revision 15e35a0713..2e500e8f5a (493344:493481)
Change log: 15e35a0713..2e500e8f5a
Full diff: 15e35a0713..2e500e8f5a

Changed dependencies:
* src/base: 62037a48ce..d18a44302e
* src/build: ac4744f4b0..c8576db966
* src/ios: 52ec32d693..9d65fe7475
* src/testing: 19d647db79..a8210a5a57
* src/third_party: e736ee036a..4b320ab4ee
* src/third_party/catapult: 789abd6994..0eeb5baed7
* src/tools: 211d56d827..0da0d5e2cd
DEPS diff: 15e35a0713..2e500e8f5a/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/3000703002
Cr-Commit-Position: refs/heads/master@{#19310}
2017-08-10 19:51:14 +00:00
eladalon
cf038f7eb6 Fix (1) EndToEndTest.InitialProbing and (2) EndToEndTest.TriggerMidCallProbing
* EndToEndTest.InitialProbing had an uninitialized boolean.
* Both tests used RTC_DCHECK where one would normally expect an RTC_DCHECK.

BUG=webrtc:8085

Review-Url: https://codereview.webrtc.org/2998793002
Cr-Commit-Position: refs/heads/master@{#19309}
2017-08-10 17:42:53 +00:00
philipel
3bf97cf060 Workaround for PacketBuffer bug.
There exist a bug in the video_coding::PacketBuffer which triggers when a
frame is the same size as the buffer. A trivial workaround is to increase
the start size to something big so that this never happens in practice.

The bug has been fixed but we still want to test the workaround in ToT,
which is why this CL exist.

BUG=webrtc:8028, chromium:752886
R=stefan@webrtc.org

Review-Url: https://codereview.webrtc.org/2994093002 .
Cr-Commit-Position: refs/heads/master@{#19308}
2017-08-10 16:11:04 +00:00
danilchap
4708537f0d Add PacketRouter::SetMaxDesiredReceiveBitrate for application limited receive bandwidth
BUG=webrtc:7135

Review-Url: https://codereview.webrtc.org/2994513002
Cr-Commit-Position: refs/heads/master@{#19307}
2017-08-10 13:03:57 +00:00
henrik.lundin
541280a8ca Add thread annotations to AudioLevel
This is a follow-up to https://codereview.webrtc.org/2984473002/.

BUG=none
TBR=henrika@webrtc.org

Review-Url: https://codereview.webrtc.org/2998763002
Cr-Commit-Position: refs/heads/master@{#19306}
2017-08-10 12:01:21 +00:00
buildbot
578c7c5940 Roll chromium_revision 0b075b51c4..15e35a0713 (493310:493344)
Change log: 0b075b51c4..15e35a0713
Full diff: 0b075b51c4..15e35a0713

Changed dependencies:
* src/base: 438840033e..62037a48ce
* src/ios: 86a2b6d42d..52ec32d693
* src/third_party: 5b32951600..e736ee036a
* src/third_party/catapult: af523a1723..789abd6994
* src/tools: aebfe00636..211d56d827
DEPS diff: 0b075b51c4..15e35a0713/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2994063002
Cr-Commit-Position: refs/heads/master@{#19305}
2017-08-10 11:31:11 +00:00
sakal
b5f5bdc5cb Support Java VideoFrames in MediaCodecVideoEncoder.
BUG=webrtc:7760

Review-Url: https://codereview.webrtc.org/2997663002
Cr-Commit-Position: refs/heads/master@{#19304}
2017-08-10 11:15:42 +00:00
mflodman
351424e942 Removing VCMCodecDataBase::Codec and VideoCodingModule::Codec.
This CL brings us one step closer to removing CodecDatabase and
GenericEncoder, by removing the static VCM::Codec(). Codec specific
methods are moved to video_encoder.cc (they already belonged to this
class) and getting default generic codec settings has been moved to a
test specific file.

This CL also makes video_encoder.h pass style guide and lint checks,
since these checks are triggered with the new video_encoder.cc file.

BUG=webrtc:8064

Review-Url: https://codereview.webrtc.org/2993923002
Cr-Commit-Position: refs/heads/master@{#19303}
2017-08-10 09:43:14 +00:00
sakal
71a62b9a19 Fix a crash in I420Frame.toString for texture frames.
BUG=webrtc:8073
R=kthelgason

Review-Url: https://codereview.webrtc.org/2997693002
Cr-Commit-Position: refs/heads/master@{#19302}
2017-08-10 09:12:24 +00:00
buildbot
99daf6b697 Roll chromium_revision 0a168c7a67..0b075b51c4 (493236:493310)
Change log: 0a168c7a67..0b075b51c4
Full diff: 0a168c7a67..0b075b51c4

Changed dependencies:
* src/base: 7517b595f5..438840033e
* src/build: b6996c4c64..ac4744f4b0
* src/ios: 102526695d..86a2b6d42d
* src/testing: 817ebb238b..19d647db79
* src/third_party: d2a81d2490..5b32951600
* src/third_party/catapult: bd05965e45..af523a1723
* src/tools: c737562167..aebfe00636
DEPS diff: 0a168c7a67..0b075b51c4/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2993373002
Cr-Commit-Position: refs/heads/master@{#19301}
2017-08-10 07:16:50 +00:00
asapersson
e5d02f9204 vp8_impl.cc: Make it possible to base postproc deblocking level for arm on qp (e.g. turn off deblocking for low qp values).
BUG=webrtc:6634

Review-Url: https://codereview.webrtc.org/2970923002
Cr-Commit-Position: refs/heads/master@{#19300}
2017-08-10 06:37:05 +00:00
buildbot
44d8f56959 Roll chromium_revision 2c3f8bcda0..0a168c7a67 (493196:493236)
Change log: 2c3f8bcda0..0a168c7a67
Full diff: 2c3f8bcda0..0a168c7a67

Changed dependencies:
* src/base: b2f05d8083..7517b595f5
* src/build: 14fb7e72cd..b6996c4c64
* src/ios: 6ccd60fa3e..102526695d
* src/testing: ea1e41784d..817ebb238b
* src/third_party: f3c29eca1f..d2a81d2490
* src/third_party/catapult: 656df4e2fc..bd05965e45
* src/tools: 81d458121a..c737562167
DEPS diff: 2c3f8bcda0..0a168c7a67/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2999773002
Cr-Commit-Position: refs/heads/master@{#19299}
2017-08-10 04:19:20 +00:00
buildbot
59e0c6a3ec Roll chromium_revision 2e72b47482..2c3f8bcda0 (493154:493196)
Change log: 2e72b47482..2c3f8bcda0
Full diff: 2e72b47482..2c3f8bcda0

Changed dependencies:
* src/base: 97e2864606..b2f05d8083
* src/ios: 9f8008f36e..6ccd60fa3e
* src/testing: 6f2dc93222..ea1e41784d
* src/third_party: 276a071181..f3c29eca1f
* src/tools: 65d8218e07..81d458121a
DEPS diff: 2e72b47482..2c3f8bcda0/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/3001493002
Cr-Commit-Position: refs/heads/master@{#19298}
2017-08-10 01:31:06 +00:00
kwiberg
ee89e7870c Replace CHECK(x && y) with two separate CHECK() calls
That way, the debug printout will tell us which of x and y that was false.

BUG=none

Review-Url: https://codereview.webrtc.org/2988153003
Cr-Commit-Position: refs/heads/master@{#19297}
2017-08-10 00:22:01 +00:00
buildbot
608e94a03f Roll chromium_revision 8cd3b9f938..2e72b47482 (493075:493154)
Change log: 8cd3b9f938..2e72b47482
Full diff: 8cd3b9f938..2e72b47482

Changed dependencies:
* src/base: be731c9216..97e2864606
* src/build: 4ad0f20d5a..14fb7e72cd
* src/ios: 5327922376..9f8008f36e
* src/testing: 07bee3a59d..6f2dc93222
* src/third_party: 0aca368632..276a071181
* src/third_party/catapult: 868342d854..656df4e2fc
* src/third_party/libFuzzer/src: 16f5f743c1..6d39c6ba7f
* src/tools: c6359659c9..65d8218e07
DEPS diff: 8cd3b9f938..2e72b47482/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2996793002
Cr-Commit-Position: refs/heads/master@{#19296}
2017-08-09 23:20:25 +00:00
deadbeef
77a983185f Revert of Request keyframes more frequently on stream start/decoding error. (patchset #1 id:1 of https://codereview.webrtc.org/2993793002/ )
Reason for revert:
Broke downstream test that was waiting for 5 keyframes to be received within 10 seconds. Maybe the issue is that "stats_callback_->OnCompleteFrame(frame->num_references == 0, ..." was changed to "frame->is_keyframe()"?

Original issue's description:
> Request keyframes more frequently on stream start/decoding error.
>
> In this CL:
>  - Added FrameObject::is_keyframe() convinience function.
>  - Moved logic to request keyframes on decoding error from VideoReceived to
>    VideoReceiveStream.
>  - Added keyframe_required as a parameter to FrameBuffer::NextFrame.
>
> BUG=webrtc:8074
>
> Review-Url: https://codereview.webrtc.org/2993793002
> Cr-Commit-Position: refs/heads/master@{#19280}
> Committed: 26b4804358

TBR=terelius@webrtc.org,stefan@webrtc.org,noahric@chromium.org,philipel@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:8074

Review-Url: https://codereview.webrtc.org/2994043002
Cr-Commit-Position: refs/heads/master@{#19295}
2017-08-09 22:55:41 +00:00
zstein
03adb7c6dc objc wrapper for PeerConnection::SetBitrate
BUG=webrtc:7395

Review-Url: https://codereview.webrtc.org/2877933004
Cr-Commit-Position: refs/heads/master@{#19294}
2017-08-09 21:29:42 +00:00
buildbot
e5f8323711 Roll chromium_revision 25e65f0db2..8cd3b9f938 (492998:493075)
Change log: 25e65f0db2..8cd3b9f938
Full diff: 25e65f0db2..8cd3b9f938

Changed dependencies:
* src/base: cad33a8912..be731c9216
* src/build: 220748ca2c..4ad0f20d5a
* src/ios: db81b29d60..5327922376
* src/testing: c936071066..07bee3a59d
* src/third_party: ef7656f82f..0aca368632
* src/third_party/catapult: 1a1b45a572..868342d854
* src/third_party/libvpx/source/libvpx: c22b17dcef..cbb83ba4aa
* src/tools: 8f979f3825..c6359659c9
DEPS diff: 25e65f0db2..8cd3b9f938/DEPS

No update to Clang.

TBR=marpan@webrtc.org,
BUG=None

Review-Url: https://codereview.webrtc.org/2996763002
Cr-Commit-Position: refs/heads/master@{#19293}
2017-08-09 19:34:23 +00:00
brucedawson
452ea0d4d9 Workaround VC++ 2017 template bug
When compiling webrtc's call.cc with VC++ 2017 (is_clang = false) the
following compile error occurs:

sequence_number_util.h(90): error C2672: 'rtc::SafeLt': no matching
overloaded function found
note: see reference to class template instantiation
'webrtc::SeqNumUnwrapper<T,M>' being compiled

This error is not associated with any particular instantiation of
SeqNumUnwrapper (there isn't one) and this undefined nature of 'T' seems
to be what confuses the compiler. When it tries to locate SafeLt for an
undefined type 'T' it gets confused.

SafeLt is unnecessary in this context and changing it to use the '<'
operator directly avoids the problem.

The bug has been reported to Microsoft.

BUG=chromium:753488

Review-Url: https://codereview.webrtc.org/2997623002
Cr-Commit-Position: refs/heads/master@{#19292}
2017-08-09 17:00:11 +00:00
buildbot
ac7edaab8a Roll chromium_revision 3a490d6e5c..25e65f0db2 (492956:492998)
Change log: 3a490d6e5c..25e65f0db2
Full diff: 3a490d6e5c..25e65f0db2

Changed dependencies:
* src/base: bd80c7cd7f..cad33a8912
* src/ios: 161443f550..db81b29d60
* src/testing: fd0aa790dc..c936071066
* src/third_party: 623e61cb17..ef7656f82f
* src/third_party/catapult: 9d0d9fc455..1a1b45a572
* src/tools: 403a7e2d45..8f979f3825
DEPS diff: 3a490d6e5c..25e65f0db2/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2993343002
Cr-Commit-Position: refs/heads/master@{#19291}
2017-08-09 16:43:20 +00:00
deadbeef
7a24688f6f Adding comments explaining Java createSender and setTrack methods.
This has been a frequent source of confusion, especially since the
method names don't match anything in the standard exactly.

BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2994733002
Cr-Commit-Position: refs/heads/master@{#19290}
2017-08-09 15:40:10 +00:00
stefan
8497fdde43 Add functionality which limits the number of bytes on the network.
The limit is based on the bandwidth delay product, but also adds some additional slack to compensate for the sawtooth-like BWE pattern and the slowness of the encoder rate control. The delay is estimated based on the time from sending a packet until an ack is received. Since acks are received in bursts (feedback is only sent periodically), a min filter is used to estimate the rtt.

Whenever the in flight bytes reaches the congestion window, the pacer is paused, which in turn will result in send-side queues growing. Eventually the encoders will be paused as the pacer queue grows large (currently 2 seconds).

BUG=webrtc:7926

Review-Url: https://codereview.webrtc.org/2918323002
Cr-Commit-Position: refs/heads/master@{#19289}
2017-08-09 14:17:33 +00:00
buildbot
cac3ccc2de Roll chromium_revision 8fdcb934ee..3a490d6e5c (492714:492956)
Change log: 8fdcb934ee..3a490d6e5c
Full diff: 8fdcb934ee..3a490d6e5c

Changed dependencies:
* src/base: 03478efbcf..bd80c7cd7f
* src/build: c77c64e863..220748ca2c
* src/ios: c50724698f..161443f550
* src/testing: d367aa6305..fd0aa790dc
* src/third_party: 2daaafbee8..623e61cb17
* src/third_party/catapult: 6065b9274f..9d0d9fc455
* src/tools: 28ae9e65e5..403a7e2d45
DEPS diff: 8fdcb934ee..3a490d6e5c/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2995653002
Cr-Commit-Position: refs/heads/master@{#19288}
2017-08-09 13:55:42 +00:00
sprang
db2a9fc6ec Wire up RTP keep-alive in ortc api.
[This CL is work in progress.]

Wire up the rtp keep-alive in webrtc::Call::Config using new
SetRtpTransportParameters() method on RtpTransportInterface.

BUG=webrtc:7907

Review-Url: https://codereview.webrtc.org/2981513002
Cr-Commit-Position: refs/heads/master@{#19287}
2017-08-09 13:42:32 +00:00
srte
3e69e5c2c0 Renamed fields in rtp_rtcp_defines.h/RTCPReportBlock
Continues on https://codereview.webrtc.org/2992043002

BUG=webrtc:8033

Review-Url: https://codereview.webrtc.org/2994633002
Cr-Commit-Position: refs/heads/master@{#19286}
2017-08-09 13:13:45 +00:00
gustavogb
f1e08d0b58 Fix the video buffer size should take rtt into consideration
BUG=webrtc:8010

Review-Url: https://codereview.webrtc.org/2980413002
Cr-Commit-Position: refs/heads/master@{#19285}
2017-08-09 12:43:08 +00:00
sakal
5ca60cc91c Implement AndroidVideoBuffer::ToI420.
BUG=webrtc:7749, webrtc:7760

Review-Url: https://codereview.webrtc.org/2991633002
Cr-Commit-Position: refs/heads/master@{#19284}
2017-08-09 12:25:49 +00:00
mbonadei
e9a40732f5 Adding desugar as a dependency on android
BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/2999713002
Cr-Commit-Position: refs/heads/master@{#19283}
2017-08-09 11:53:18 +00:00
Gustavo Garcia
eb94436b38 Modify VP8 RTP to always use 2 bytes for picture Id
Bug: webrtc:7877
Change-Id: Ic40a7e142918399d05d02e8858313fe9b62d042b
Reviewed-on: https://chromium-review.googlesource.com/596967
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19282}
2017-08-09 11:17:48 +00:00
sakal
5a2c2b3c35 Remove maximum frametime to allow the camera to adjust based on the lighting conditions.
BUG=webrtc:7777

Review-Url: https://codereview.webrtc.org/2998683002
Cr-Commit-Position: refs/heads/master@{#19281}
2017-08-09 11:10:59 +00:00
philipel
26b4804358 Request keyframes more frequently on stream start/decoding error.
In this CL:
 - Added FrameObject::is_keyframe() convinience function.
 - Moved logic to request keyframes on decoding error from VideoReceived to
   VideoReceiveStream.
 - Added keyframe_required as a parameter to FrameBuffer::NextFrame.

BUG=webrtc:8074

Review-Url: https://codereview.webrtc.org/2993793002
Cr-Commit-Position: refs/heads/master@{#19280}
2017-08-09 10:33:59 +00:00
eladalon
445f1a1535 nit: Order CallTest's methods in the .cc according to their order in the .h file.
BUG=None

Review-Url: https://codereview.webrtc.org/2965373002
Cr-Commit-Position: refs/heads/master@{#19279}
2017-08-09 08:52:36 +00:00
deadbeef
3af63b0dc9 Fixing race between ~AsyncInvoker and ~AsyncClosure, using ref-counting.
The AsyncInvoker destructor waits for all invoked tasks to be complete
(in other words, all AsyncClosures to be destructed). They were using an
event to wake up the destructor, but a race made it possible for this
event to be dereferenced after it's destroyed.

This CL makes the event reference counted, such that if the destructor
runs right after AsyncClosure decrements "pending_invocations_",
setting the event will be a no-op, and the event will be destructed
in the AsyncClosure destructor.

This CL also fixes a deadlock that may occur for "re-entrant"
invocations. The deadlock occurs if the AsyncInvoker is destroyed on
thread A while a task on thread B is running, which AsyncInvokes a task
back on thread A.

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

BUG=webrtc:7656

Review-Url: https://codereview.webrtc.org/2885143005
Cr-Commit-Position: refs/heads/master@{#19278}
2017-08-09 00:59:47 +00:00
qiangchen
42f96d53f3 Add Android Camera To Unity Plugin
The existing unity plugin (an example in webrtc codebase) does not support camera access on Android platform. This CL implements such functionality.

TBR=gyzhou@chromium.org

BUG=webrtc:8067

Review-Url: https://codereview.webrtc.org/2993273002
Cr-Commit-Position: refs/heads/master@{#19277}
2017-08-09 00:08:03 +00:00
braveyao
b2b803cb74 desktopCapture: minimized window shouldn't be treated as on-top on Win10
During window capture on Windows 10, if the selected window is minimized,
ShouldUseScreenCapturer() still thinks it's on top and continue to do a
screencapture which is meaningless.
This cl will set |.is_top_window| with false to minimized window,then we
can skip doing any capture to it.

BUG=chromium:568835

Review-Url: https://codereview.webrtc.org/2997493002
Cr-Commit-Position: refs/heads/master@{#19276}
2017-08-08 20:30:01 +00:00
buildbot
793fc2affa Roll chromium_revision 53b8036516..8fdcb934ee (492637:492714)
Change log: 53b8036516..8fdcb934ee
Full diff: 53b8036516..8fdcb934ee

Changed dependencies:
* src/base: a61aee0ab6..03478efbcf
* src/build: 0e747a989a..c77c64e863
* src/ios: cdff1f09b1..c50724698f
* src/testing: e52338f683..d367aa6305
* src/third_party: 34bf63fd76..2daaafbee8
* src/third_party/catapult: a1a4adff33..6065b9274f
* src/tools: bfc31b778d..28ae9e65e5
DEPS diff: 53b8036516..8fdcb934ee/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/3000553002
Cr-Commit-Position: refs/heads/master@{#19275}
2017-08-08 19:39:48 +00:00
agrieve
26622d3ff8 Audit of kConstants missing the const qualifier
Found via supersize query:
size_info.symbols.WhereFullNameMatches(r'\bk[A-Z]').WhereInSection('d')

This moves 90 symbols from .data -> .data.rel.ro (5.50kb)

BUG=chromium:747064

Review-Url: https://codereview.webrtc.org/2986163002
Cr-Commit-Position: refs/heads/master@{#19274}
2017-08-08 17:48:15 +00:00
zijiehe
f50fda9534 Ignore invalid mouse cursor image
A crash has been randomly detected across different versions. The NSImage
crashes the binary in its lockFocusFlipped() function. The suspicious issue is
that NSCursor::image() returns an invalid NSImage.

BUG=chromium:752036

Review-Url: https://codereview.webrtc.org/2993173003
Cr-Commit-Position: refs/heads/master@{#19273}
2017-08-08 17:35:11 +00:00
buildbot
1921bea4de Roll chromium_revision 6789f83945..53b8036516 (492603:492637)
Change log: 6789f83945..53b8036516
Full diff: 6789f83945..53b8036516

Changed dependencies:
* src/base: 0a0963b1f3..a61aee0ab6
* src/ios: 16259cd3da..cdff1f09b1
* src/testing: 8c59ae25eb..e52338f683
* src/third_party: 73b80e6e4b..34bf63fd76
* src/tools: 85685ddc28..bfc31b778d
DEPS diff: 6789f83945..53b8036516/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2998593003
Cr-Commit-Position: refs/heads/master@{#19272}
2017-08-08 16:14:20 +00:00
brandtr
07734a5995 Move ownership of webrtc::VideoCodec into TestConfig.
BUG=webrtc:6634

Review-Url: https://codereview.webrtc.org/2995603002
Cr-Commit-Position: refs/heads/master@{#19271}
2017-08-08 15:35:53 +00:00
stefan
d7a418f93a Add an experiment for stricter pacing and ALR probing.
BUG=webrtc:8072

Review-Url: https://codereview.webrtc.org/2994623002
Cr-Commit-Position: refs/heads/master@{#19270}
2017-08-08 13:51:05 +00:00