0
Commit Graph

874 Commits

Author SHA1 Message Date
Colin Blundell
b8bfb9ee93 [//content] Convert SI RASTER usage to RASTER_READ | RASTER_WRITE
There are no functional changes, as RASTER is a constant that expands
to RASTER_READ | RASTER_WRITE. This will allow us to subsequently (1)
eliminate RASTER and (2) refine all RASTER_READ | RASTER_WRITE usage
based on where raster reads and writes are actually necessary.

Bug: 1519074
Change-Id: I61a882ad741efb7aeb5afd56347c340c212a4222
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5210411
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1248658}
2024-01-18 09:50:54 +00:00
Colin Blundell
065d15f1d6 [//content] Refine WebRTCVideoCaptureServiceBrowsertest GLES2 SI usage
These SharedImages are created as individual planes for a VideoFrame.
They will be read via the raster interface, which is specified as being
OOP-raster. The individual planes would be converted to a single RGB
texture before being read by GLES2 (e.g., if a WebGL codepath is
exercised by this test). Thus, these SIs don't need any GLES2 usage.

Bug: 1512542
Change-Id: I69890242acf93d04550805511194fb5f9f7e1964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5185619
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1245922}
2024-01-11 17:26:24 +00:00
Arthur Sonzogni
c686e8f4fd Rename {absl => std}::optional in //content/
Automated patch, intended to be effectively a no-op.

Context:
https://groups.google.com/a/chromium.org/g/cxx/c/nBD_1LaanTc/m/ghh-ZZhWAwAJ?utm_medium=email&utm_source=footer

As of https://crrev.com/1204351, absl::optional is now a type alias for
std::optional. We should migrate toward it.

Script:
```
function replace {
  echo "Replacing $1 by $2"
  git grep -l "$1" \
    | cut -f1 -d: \
    | grep \
      -e "^content" \
    | sort \
    | uniq \
    | grep \
      -e "\.h" \
      -e "\.cc" \
      -e "\.mm" \
      -e "\.py" \
    | xargs sed -i "s/$1/$2/g"
}
replace "absl::make_optional" "std::make_optional"
replace "absl::optional" "std::optional"
replace "absl::nullopt" "std::nullopt"
replace "absl::in_place" "std::in_place"
replace "absl::in_place_t" "std::in_place_t"
replace "\"third_party\/abseil-cpp\/absl\/types\/optional.h\"" "<optional>"
git cl format
```

# Skipping unrelated "check_network_annotation" errors.
NOTRY=True

Bug: chromium:1500249
Change-Id: Icfd31a71d8faf63a2e8d5401127e7ee74cc1c413
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5185537
Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1245739}
2024-01-11 08:36:37 +00:00
Elly
f4a431456d gardener: disable flaky WebRtc GrabFrame tests
They're flaky across all suites, unfortunately, and all platforms. :(

Bug: 1515035
Change-Id: Ia2ee74eec4bfcdffeb01d44773f98768cf4843fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5187508
Reviewed-by: Peter Boström <pbos@chromium.org>
Commit-Queue: Elly FJ <ellyjones@chromium.org>
Auto-Submit: Elly FJ <ellyjones@chromium.org>
Owners-Override: Elly FJ <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1245622}
2024-01-11 00:30:12 +00:00
stluong
d0578ffdd5 Disable WebRtcImageCaptureSucceedsBrowserTest.GrabFrame on Mac
Test is consistently flaky or failing on Mac10.15 bot

Bug: 1187247
Change-Id: I41ee426292186f3a4a2a7914c115cac41c70ebcc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5173042
Owners-Override: Steven Luong <stluong@chromium.org>
Commit-Queue: Paul Adedeji <pauladedeji@google.com>
Reviewed-by: Paul Adedeji <pauladedeji@google.com>
Auto-Submit: Steven Luong <stluong@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1243538}
2024-01-05 19:27:20 +00:00
Philipp Hancke
ed884643ae webrtc-internals: improve display of missing address stat
which can happen in the case that MDNS is used to obfuscate the
candidate address. Also fix VPN detection and improve comments.

BUG=chromium:1375217

Change-Id: Ic036fa297bf2c309f2c53d086dccff3aa83b7279
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5149642
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1241866}
2024-01-02 11:41:53 +00:00
Avi Drissman
d0b88a2bb4 Simplify SelectFileDialog::Listener
SelectFileDialog::Listener has two variants for each type of
selection. Consolidate each of those two variants into one.

Fixed: 1514382
Low-Coverage-Reason: LARGE_SCALE_REFACTOR This is a refactor of how a specific interface works
Change-Id: I6cf8c2ebb36ba30b351c0108dd7cad848ace9380
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5148579
Commit-Queue: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Yuwei Huang <yuweih@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Jimmy Gong <jimmyxgong@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1241424}
2023-12-28 22:49:38 +00:00
Philipp Hancke
ba4adefc38 webrtc-internals: clean up legacy stats code
now that those legacy stats have been removed from Chromium.

Delete! Delete!

BUG=chromium:822696

Change-Id: I8f1f9805820768002bdd223cf85e4c01c9346218
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5136500
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1239670}
2023-12-20 14:43:13 +00:00
Wojciech Dzierżanowski
d8839a7888 Really test SW and HW encoding in MediaRecorder test
Use the correct command line switch to disable HW-accelerated encoding,
and add the switch early enough.

Also increase the test canvas size above the threshold for
HW-accelerated encoding.

Bug: 1512622
Change-Id: Ibed3f3eb1852f3efe04856b11b43dc42e3796103
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5125961
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Auto-Submit: Wojciech Dzierżanowski <wdzierzanowski@opera.com>
Cr-Commit-Position: refs/heads/main@{#1239057}
2023-12-19 12:05:37 +00:00
Ming-Ying Chung
0cf220d775 [gardener] Disable WebRtcVideoCaptureServiceBrowserTest.FramesSentThroughTextureVirtualDeviceGetDisplayedOnPage
It is failing on ChromeOS.

Bug: 1511497
Change-Id: Iee5a89d6c32df7547aab8d9024fca65457fa02ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5119975
Owners-Override: Ming-Ying Chung <mych@chromium.org>
Commit-Queue: Ming-Ying Chung <mych@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1237398}
2023-12-14 06:29:49 +00:00
Colin Blundell
4bed4b4a63 [SharedImage] Convert //content usage of SHARED_IMAGE_USAGE_GLES2
We're getting rid of SHARED_IMAGE_USAGE_GLES2 in favor of
SHARED_IMAGE_USAGE_GLES2_READ and SHARED_IMAGE_USAGE_GLES2_WRITE. The
former is currently a constant that is equal to the bitwise-or of the
two latter. This CL replaces usage of the former with the bitwised-or
of the latter in //content.

Bug: 1510440
Change-Id: Idc38226f0fa890430f0ce73aa1bfe4791213f99d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5115119
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1236265}
2023-12-12 12:47:48 +00:00
Henrik Boström
80fb1ff318 Delete the legacy callback-based getStats() API.
This API unshipped in M117 (as in, calling throws an exception), since
then the API has only been available for users of a Deprecation Trial.
That Deprecation Trial ended in M121 so we are now ready to delete all
code associated with legacy getStats() in Chromium.

There are a handful of old tests that are being deleted as part of this
CL because of their dependency on the non-standard API. E.g. I don't
think anyone has been paying attention to the browser perf tests for
years. These days we have more sophisticated testing dashboards
that doesn't rely on chrome://webrtc-internals/ in order to obtain
getStats results (which didn't make much sense to start with if you
ask me).

https://chromestatus.com/feature/4631626228695040

Delete! Delete!

Bug: chromium:822696
Change-Id: I6a1b7337fdf936a82fdac2dab5efd2567a857c16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5093107
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1234621}
2023-12-07 18:58:22 +00:00
Bryant Chandler
7724fb4613 [ondeviceschanged] Unflakify test
This test was brittle because `MediaDevicesManager` requires some
setup time and the test wasn't providing enough time for the setup to
happen. Adding an enumerate call at the beginning of the test ensures
that everything is set up and ready to go.

Bug: 1126373
Change-Id: I0be57364b8618b7c9d7ac76e848e8aba5ddcba5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5009028
Reviewed-by: Elad Alon <eladalon@chromium.org>
Commit-Queue: Bryant Chandler <bryantchandler@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1221653}
2023-11-08 16:17:15 +00:00
Eugene Zemtsov
889a4c360b Disable webrtc.AddingAndRemovingVirtualDeviceTriggersMediaElementOnDeviceChange
flaky on Linux and Mac as well

Bug: 1126373
Change-Id: I6c6a2666f8368fc647223a2f386dd4cecef93855
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5008616
Reviewed-by: Eugene Zemtsov <ezemtsov@google.com>
Owners-Override: Eugene Zemtsov <ezemtsov@google.com>
Commit-Queue: thefrog <thefrog@chromium.org>
Reviewed-by: thefrog <thefrog@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1220506}
2023-11-06 21:02:43 +00:00
David Bienvenu
3c36065804 win: disable VerifyCanvasWebGL tests on Win Arm64
SwiftShader is disabled on Arm64, which breaks these tests on Windows.

Bug: 1498181
Change-Id: I59f530a2ad7dbfc3b8f65bcf8e1f222fd7f730ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4997271
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: David Bienvenu <davidbienvenu@chromium.org>
Reviewed-by: Bo Liu <boliu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1218322}
2023-11-01 18:23:34 +00:00
Mingjing Zhang
deb525688e [ClientSharedImage] Refactor CreateSharedImage()
As part of the effort of introducing ClientSharedImage, this CL
continues to refactor CreateSharedImage() so that this function
returns a pointer to ClientSharedImage instead of a mailbox.

Bug: 1494911
Change-Id: I5ac5ed7fdb2a6af4c3c2f41db94747c7b5044050
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4986181
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Commit-Queue: Mingjing Zhang <mjzhang@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: Peter McNeeley <petermcneeley@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Khushal Sagar <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1218193}
2023-11-01 13:57:07 +00:00
dpapad
303c928160 WebUI: Rename util_ts.ts to util.ts, part 3.
In this part all references under the following folders:
 - components/
 - content/
 - ios/

Also adding ui/webui/PLATFORM_OWNERS as OWNERS for trivial/mechanical
changes in:
 - components/commerce/core/internals/resources
 - content/browser/webrtc/resources/

Bug: 1497028
Change-Id: I9112fea44301b3082b9043143604ad5949256605
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4985632
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Reviewed-by: Matthew Jones <mdjones@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1217365}
2023-10-31 02:08:35 +00:00
kylechar
b4a5f0a607 Convert browser tests to use RasterInterface
The browser should be using RasterInterface instead of GLES2Interface
for graphics functionality now. Convert a few remaining browser tests
that were using GLES2Interface to use RasterInterface instead.

Bug: 1453633
Change-Id: I276494a1da3e6da8b49464f02dad1fc9c33b77e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4974495
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Kyle Charbonneau <kylechar@chromium.org>
Reviewed-by: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1215518}
2023-10-26 15:07:48 +00:00
Peter Kasting
08b91b4953 Rename many Time functions:
* `FromDoubleT()` -> `FromSecondsSinceUnixEpoch()`
* `ToDoubleT()` -> `InSecondsFSinceUnixEpoch()`
* `FromJsTime()` -> `FromMillisecondsSinceUnixEpoch()`
* `ToJsTime*()` -> `InMillisecondsFSinceUnixEpoch*()`
* `FromJavaTime()` -> `FromMillisecondsSinceUnixEpoch()`
* `ToJavaTime()` -> `InMillisecondsSinceUnixEpoch()`

These are more descriptive of the functionality.

No other changes, aside from typecasting fixes in the following files:

* chrome/browser/ash/arc/fileapi/arc_documents_provider_root.cc
* third_party/blink/renderer/modules/notifications/notification_data.cc
* third_party/blink/renderer/modules/notifications/notification_data_test.cc

Further cleanup will happen separately, since this CL as-is isn't really
reviewable, only stampable.

Bug: none
No-Try: True
Change-Id: I9ba11d4a5ff0692e6060e3aa47327a6dfc37bbe5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4956111
Owners-Override: Gabriel Charette <gab@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1213083}
2023-10-21 03:46:09 +00:00
Philipp Hancke
eb75f255dc webrtc-internals: remove SDES deprecation notice
since the constraint no longer gets passed by the native layer

BUG=chromium:804275

Change-Id: I6e011d3b504103bc47fd337a3e8a7b69b3c7190e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3260037
Commit-Queue: Henrik Boström <hbos@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1203936}
2023-10-02 11:23:30 +00:00
Lei Zhang
ad220ec559 Consistently call ListenerDestroyed() in SelectFileDialog::Listeners
Per instruction in select_file_dialog.h, classes that inherit from
SelectFileDialog::Listener should let the SelectFileDialog know about
their destruction via ListenerDestroyed().

Also add more comments in select_file_dialog.h to highlight this
requirement.

Low-Coverage-Reason: OTHER Non-trivial cleanup where existing code lacks coverage.
Change-Id: Ie28c71e5b7df5a9a7b39ace5f2e33d1250293aaf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4900261
Reviewed-by: Elad Alon <eladalon@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1202768}
2023-09-28 18:28:55 +00:00
Philipp Hancke
ef5af4549f webrtc-internals: add rate calculators for (fec)packetsDiscarded
packetsDiscarded is related to audio/red and can be tested on
  https://webrtc.github.io/samples/src/content/peerconnection/audio/
by choosing RED. Without loss, the expected discard rate is 50/s.

BUG=chromium:1375217

Change-Id: I5cfd4b4ca883a74d8deb05f0f22f9ad37f806995
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4897556
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1202416}
2023-09-28 08:06:39 +00:00
Philipp Hancke
7132fb6e8b webrtc-internals: do not plot graphs for ssrc, rtxSsrc and fecSsrc stats
since these do not change over time. Also clean up suppression of
datachannelid which does not exist and does not follow the ...Identifier
suffix rule and is only available on legacy stats.

BUG=chromium:1375217

Change-Id: I139ca28677e042a6a44aa7243e362f26db04d6a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4887030
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1200890}
2023-09-25 09:56:33 +00:00
Philipp Hancke
788150147d webrtc-internals: add url parameter for keeping connections
by adding keepRemovedConnections to the URL parameters, i.e.
  ?keepRemovedConnections
This is useful to see the history in case of tab crashes.

BUG=chromium:416876

Change-Id: I78230bbe094131484e4d64582aeb6466543f293a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4876665
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1199452}
2023-09-21 07:19:54 +00:00
Philipp Hancke
6f8193b380 webrtc-internals: add new GUM requests to the top
which makes them easier to track. Also renames
  user_media.js
to
  user_media_table.js
which is the name of the class it contains

BUG=chromium:1484453

Change-Id: Ie30f68b4d8c2391405455e95e13eed1ee4e38f81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4872837
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1198236}
2023-09-19 08:05:37 +00:00
Henrik Boström
65ecac6dd3 [webrtc-internals] Fix bug where computed metrics show up as (removed).
The issue described in https://crbug.com/1482684 is fixed by updating
the metricName parsing logic in the event that the metric is a computed
one (ending with ']').

This fixes the reported bug (populating invalid metric names as
"(removed)") while still supporting having computed metrics being
removable. Today I don't think we ever remove computed metrics? But if
we did this logic would still work since we are parsing even computed
metric names correctly.

Bug: chromium:1482684
Change-Id: Iddc5c0845b060c7172979617dcfd9d85cc38859a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4866120
Reviewed-by: Philipp Hancke <phancke@microsoft.com>
Commit-Queue: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1196475}
2023-09-14 09:10:43 +00:00
Tushar Agarwal
d543aa21b6 [Sheriff] Disable two WebRtcBrowserTests.
For more context, please see the attached bug.

Bug: 1480170
Change-Id: Ie74eaf12e22846c482cb107c4c59db010effe3b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4853624
Commit-Queue: Tushar Agarwal <agarwaltushar@google.com>
Commit-Queue: Zhiyuan Cai <zhiyuancai@chromium.org>
Auto-Submit: Tushar Agarwal <agarwaltushar@google.com>
Owners-Override: Zhiyuan Cai <zhiyuancai@chromium.org>
Reviewed-by: Zhiyuan Cai <zhiyuancai@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1194166}
2023-09-08 16:35:34 +00:00
Jason Lin
0b9fc51df2 Disable CallWithAudioDebugRecordings test for Fuchsia
Bug: 1470981
Change-Id: Ie1a1cb82ad51ee72c570b21e8afb5df768b22330
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4756427
Owners-Override: Jason Lin <lxj@google.com>
Commit-Queue: Jiewei Qian <qjw@chromium.org>
Auto-Submit: Jason Lin <lxj@google.com>
Commit-Queue: Jason Lin <lxj@google.com>
Reviewed-by: Jiewei Qian <qjw@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1180715}
2023-08-08 07:14:56 +00:00
phancke@microsoft.com
4dbb00373d webrtc: implement fecSsrc on inbound-rtp stats
which is present if a fec mechanism like FlexFEC is negotiated

spec change:
  https://github.com/w3c/webrtc-stats/pull/765

webrtc change:
  https://webrtc-review.googlesource.com/c/src/+/314981

BUG=webrtc:15250

Change-Id: I16d7fa31aefbbcfdd462971f48ab620214a001af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4756819
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1180237}
2023-08-07 12:48:40 +00:00
Philipp Hancke
f977141e6c webrtc: implement rtxSsrc on inbound-rtp/outbound-rtp stats
spec change
  https://github.com/w3c/webrtc-stats/pull/765

WebRTC change:
  https://webrtc-review.googlesource.com/c/src/+/312362

BUG=webrtc:15096

Change-Id: Ife0cd58fdd4d98461d646b40532c2e0bfd48bb4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4701074
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1180175}
2023-08-07 08:37:44 +00:00
Peter Kasting
4184e2582e Use new facilities for base::expected: content/
Bug: 1424513
Change-Id: Ib5159f8ff5e2f23a6d30ea0d5885f0524f71e64d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4754959
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1180050}
2023-08-06 12:39:40 +00:00
Ian Vollick
32f00c7d54 [ios] Disable flaky WebRTC test
WebRtcVideoCaptureServiceEnumerationBrowserTest.
AddingAndRemovingVirtualDeviceTriggersMediaElementOnDeviceChange
is flaky.

Bug: 1126373
Change-Id: Ie97f2907eb3246a5efbefd1883e67f0ca6736e6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4752252
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Ian Vollick <vollick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1179572}
2023-08-04 14:03:12 +00:00
Zijie He
bf599227bc [Fuchsia] Disable WebRtcVideoCaptureServiceEnumerationBrowserTest.AddingAndRemovingVirtualDeviceTriggersMediaElementOnDeviceChange on Fuchsia
It's flaky: https://ci.chromium.org/ui/test/chromium/ninja%3A%2F%2Fcontent%2Ftest%3Acontent_browsertests%2FWebRtcVideoCaptureServiceEnumerationBrowserTest.AddingAndRemovingVirtualDeviceTriggersMediaElementOnDeviceChange%2FAll.0?q=V%3Atest_suite%3Dcontent_browsertests+.

Bug: 1126373
Change-Id: I3f889b0711532d9ee6d827dcb6d62b65fc3b40a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4743600
Commit-Queue: Zijie He <zijiehe@google.com>
Reviewed-by: Charlie Reis <creis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1178709}
2023-08-02 22:52:40 +00:00
Henrik Boström
23dec44af6 [webrtc-internals] Clear old 'metrics: value' from stats tables.
It is perfectly valid for metrics to change from a defined value to the
undefined value. For example, some encoder implementations report a
scalabilityMode and others do not (scalabilityMode is undefined).

Because webrtc-internals was only updating metrics that had a value
this resulted in what looked like invalid encoder implementation and
scalability mode combinations, causing much confusion.

This CL fixes that problem by taking all previously reported metrics
that are now undefined and changing their obsolete values to
"(removed)".

This CL also ensures that the "Stats graphs" title (containing
information such as scalabilityMode and encoderImplementation) is made
up-to-date.

Bug: 1467461
Change-Id: Ifbe748dad4c9be58d3d178d7dae3c7c2154dfa67
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4714889
Reviewed-by: Philipp Hancke <phancke@microsoft.com>
Commit-Queue: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1174779}
2023-07-25 12:13:35 +00:00
Henrik Boström
adae545e41 [webrtc-internals] Remove documentation about non-standard stats.
As of [1], non-standard stats are no longer exposed in webrtc-internals
so this documentation about non-standard metrics being exposed with an
asterisk to its name is no longer true. Delete sentence.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/4516539

Bug: webrtc:15162
Change-Id: Ifef3c6a5e704e62141a353a2a8722d37cb571a08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4711472
Commit-Queue: Henrik Boström <hbos@chromium.org>
Reviewed-by: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1174738}
2023-07-25 10:03:23 +00:00
Philipp Hancke
f03140f818 webrtc-internals: add rate calculator for min/target jitter buffer delay
along the lines of the calculator for the actual delay.

BUG=chromium:1375217

Change-Id: Ib73d68f137d94bf2d27d61621fa1b3ea0279fc7b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4711611
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1174679}
2023-07-25 07:46:43 +00:00
Philipp Hancke
43feafe8d1 webrtc-internals: remove rate calculators for removed track stats
BUG=webrtc:14522

Change-Id: I2e6d85c85c236264f168cd1e0d5c7eb9a83a60f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4714545
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1174677}
2023-07-25 07:36:55 +00:00
Philipp Hancke
0e82c44330 webrtc-internals: reenable browser test on Windows
This was previously disabled because of flakiness but
after ten years it is worth trying again.

BUG=chromium:277322

Change-Id: Id18927e5c5f9d4892e08e1c18746d950e0f08f0c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4672412
Reviewed-by: Henrik Boström <hbos@chromium.org>
Reviewed-by: Elad Alon <eladalon@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1172837}
2023-07-20 09:07:03 +00:00
Abhijeet Kandalkar
424c97b756 [mac] Always use zero-copy for video capture on mac unless disabled
Before CL[1], mac platforms always used zero-copy(GBM) regardless of
commandline switch.
(a) A zero-copy copy is used even when
 --disable-video-capture-use-gpu-memory-buffer is provided.
(b) If a switches are not provided, zero-copy is used.

CL[1] implements zero-copy selection based on command-line switches.

After CL[1], Chorme's behavior is changed when launched without any
GBM-related switch. Previously, Chorme used zero-copy (GBM), but now
since no explicit instruction to use GMB is provided, it doesn't use
zero-copy. Refer discussion on [2] for more information.

The Mac and iOS share this implementation, but iOS does not yet
support zero-copy(GBM), so switches are required to select software
path (shared memory) implementation.

In this CL, for mac platform, zero-copy(GBM) is always used unless the
user explicitly asks to disable it.

[1] https://crrev.com/c/4551060
[2] https://crrev.com/c/4551060/3/media/capture/capture_switches.cc

Bug: 1458391
Change-Id: Ia35090b9306fc3c185d15da5b6c2c5e5a534c8a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4653786
Reviewed-by: Ilya Nikolaevskiy <ilnik@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1168585}
2023-07-11 08:48:02 +00:00
phancke@microsoft.com
3fdde8a214 Reland "webrtc-internals: export timestamp for statistics in the JSON dump"
This is a reland of commit e02efb1c70
with an updated test expectation on the number of data series in the dump.

Original change's description:
> webrtc-internals: export timestamp for statistics in the JSON dump
>
> adding a new entry per stats report like this:
> "AP-timestamp": {
>   "startTime": "2023-07-06T10:36:30.299Z",
>   "endTime": "2023-07-06T10:36:39.950Z",
>   "statsType": "media-playout",
>   "values": "[1688639790299,more,values,1688639799950]"
> },
>
> BUG=chromium:1462567
>
> Change-Id: I28411a29619528369c323d06432b00c15b078a5b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4668789
> Reviewed-by: Henrik Boström <hbos@chromium.org>
> Commit-Queue: Philipp Hancke <phancke@microsoft.com>
> Cr-Commit-Position: refs/heads/main@{#1166483}

BUG=chromium:1462567

Change-Id: Id94ef68daab03f8b34bbae901e56a272f93417bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4670786
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Elad Alon <eladalon@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1167385}
2023-07-07 12:45:13 +00:00
Miriam Polzer
2bbd468d91 Revert "webrtc-internals: export timestamp for statistics in the JSON dump"
This reverts commit e02efb1c70.

Reason for revert: Most likely causes test failure of create page dump because data series size is changed https://ci.chromium.org/ui/p/chromium/builders/ci/Cast%20Audio%20Linux/172951/overview

Original change's description:
> webrtc-internals: export timestamp for statistics in the JSON dump
>
> adding a new entry per stats report like this:
> "AP-timestamp": {
>   "startTime": "2023-07-06T10:36:30.299Z",
>   "endTime": "2023-07-06T10:36:39.950Z",
>   "statsType": "media-playout",
>   "values": "[1688639790299,more,values,1688639799950]"
> },
>
> BUG=chromium:1462567
>
> Change-Id: I28411a29619528369c323d06432b00c15b078a5b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4668789
> Reviewed-by: Henrik Boström <hbos@chromium.org>
> Commit-Queue: Philipp Hancke <phancke@microsoft.com>
> Cr-Commit-Position: refs/heads/main@{#1166483}

BUG=chromium:1462567
No-Presubmit: true
No-Tree-Checks: true
No-Try: true

Change-Id: Id4de5ac82c6713f3bf9f0bca1d4f685a825824de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4668736
Auto-Submit: Miriam Polzer <mpolzer@google.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Miriam Polzer <mpolzer@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1166513}
2023-07-06 14:28:37 +00:00
Philipp Hancke
e02efb1c70 webrtc-internals: export timestamp for statistics in the JSON dump
adding a new entry per stats report like this:
"AP-timestamp": {
  "startTime": "2023-07-06T10:36:30.299Z",
  "endTime": "2023-07-06T10:36:39.950Z",
  "statsType": "media-playout",
  "values": "[1688639790299,more,values,1688639799950]"
},

BUG=chromium:1462567

Change-Id: I28411a29619528369c323d06432b00c15b078a5b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4668789
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1166483}
2023-07-06 13:11:16 +00:00
phancke@microsoft.com
3d84d1f26e webrtc-internals: add rate calculator FEC and RTX stats
Adding calculators for fecBytesReceived and fecPacketsReceived on inbound-rtp as well RTX stats which was only calculated outbound.

Also reorder the entries in a more logical fashion.

BUG=webrtc:15250,webrtc:15096

Change-Id: Ia0e719cbcd6744afae845460c63146665e06bf51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4637885
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1162418}
2023-06-26 15:02:42 +00:00
henrika
78a3cc5d88 Disables WebRtcVideoCaptureBrowserTest.RecoverFromCrashInVideoCaptureProcess on Win64
Bug: 1444362
Change-Id: Iedac867b567425633a6e0633795c7830ce3ba988
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4621703
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Commit-Queue: Henrik Andreasson <henrika@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1159885}
2023-06-20 08:35:56 +00:00
Philipp Hancke
98b438cbf1 webrtc-internals: add transceiver kind transceiver events
improving visibility by showing them as
  transceiverAdded [0], video

BUG=chromium:1375217

Change-Id: I7e9090050c48524a3fb77be7f5f2740d5f9383d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4614962
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1159526}
2023-06-19 10:17:17 +00:00
Philipp Hancke
07263c65c9 webrtc-internals: update stats graph label on every report
for consistency with the stats table label

BUG=chromium:1375217

Change-Id: I8526d1cd7eda30cb54d39aa9a9ab0ea59433556f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4614758
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1159519}
2023-06-19 10:02:09 +00:00
Philipp Hancke
b6fb26f985 webrtc-internals: add encoder/decoder information to stats label
which makes it easier to see what encoder/decoder is used on
screenshots from the graphs.

BUG=chromium:1375217

Change-Id: I8a10a16f5bd796a85abb94dd49054e532f8f1a40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4603794
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1155505}
2023-06-09 14:17:35 +00:00
mark a. foltz
18a4c666e4 [MediaStream] Update OWNERS and DIR_METADATA for mediastream folders.
This patch:
- Uses file includes to remove redundant entries from OWNERS and
  DIR_METADATA files.
- Adds myself as a NA time zone OWNER for urgent/routine patches.
- Removes emeritus OWNERS from content/browser/webrtc/OWNERS.

Change-Id: I2a332cb8420915b523ff827d359ea5a83cf0025d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4583635
Commit-Queue: Mark Foltz <mfoltz@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1154060}
2023-06-06 20:51:03 +00:00
Yoichi Osato
e0400143c9 Move content/public/common/network_service_util.h to c/p/browser/
That's because all functions are called from browser process.

For content/renderer/workers, IsOutOfProcessNetworkService() is
used ([1]) to terminate workers if the network service crashes.
However, if the crashed network service is in the browser process,
then the workers are going to get terminated anyway, so introducing
this condition doesn't actually help. Thus we can remove them.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/1264139

Bug: 1329834
Change-Id: Iaf3c9847b2231aef9e413481d6bdf53f7e9065ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4547630
Auto-Submit: Yoichi Osato <yoichio@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Owners-Override: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1150766}
2023-05-30 19:35:40 +00:00
Philipp Hancke
a9abeab571 webrtc-internals: request current state of existing peerconnections
which is useful when opening a new webrtc-internals tab with
an already established connection.
This re-emits the state using the following events:
* setLocalDescription
* setRemoteDescription
* signalingstatechange, iceconnectionstatechange, connectionstatechange

BUG=chromium:1320617

Change-Id: I7d4ee468ef4e12b43b7c1eb13ddd9154afd229c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4492439
Reviewed-by: Elad Alon <eladalon@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Henrik Boström <hbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1144560}
2023-05-16 06:43:41 +00:00