0
Commit Graph

234 Commits

Author SHA1 Message Date
Avi Drissman
db497b3200 Update copyright headers in pdf/, ppapi/, printing/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c95.

No-Try: true
Bug: 1098010
Change-Id: I6ae92e5d7ccbf73b176588124b2f8b4067f805b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3900575
Reviewed-by: Mark Mentovai <mark@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047628}
2022-09-15 19:47:28 +00:00
K. Moon
f17e216ac7 Switch //ppapi to use enable_ppapi
Switches //ppapi to the PPAPI-specific enable_ppapi arg, rather than the
more general enable_plugins arg.

Bug: 1306610
Change-Id: Id3b1723d41f9c381f9a567325d7ad830d60c4599
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3750107
Commit-Queue: Derek Schuff <dschuff@chromium.org>
Auto-Submit: K. Moon <kmoon@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1025398}
2022-07-18 20:59:42 +00:00
Nico Weber
9f1ced58b8 Remove more sprintf calls
Bug: 1334739
Change-Id: Idb165eacfcb07d7e5e272f3cf478ee078cf4da21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3721605
Owners-Override: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1017979}
2022-06-25 18:04:49 +00:00
Peter Kasting
cc7469c57a Uncomment prevent_unsafe_narrowing and change from opt-out to opt-in.
This config will take extreme effort to apply, so it makes sense to
start by opting in individual targets.

Bug: 1292951
Change-Id: Ida311bdc17fde8b8adf2c6a231a676d253cf5d8f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3669207
Reviewed-by: danakj <danakj@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Owners-Override: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1007928}
2022-05-26 18:59:10 +00:00
Peter Kasting
13fea73ef8 Fix for C++20 support.
Math between enums and floats is deprecated.  Insert an explicit cast.

Bug: 1284275
Change-Id: I62208d70fb9d997896e496f7610861c945630a7e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3630977
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Commit-Queue: Derek Schuff <dschuff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1000544}
2022-05-06 20:35:13 +00:00
David Dorwin
fb712813be [ppapi] Assert plugins are enabled in PPAPI GN files.
Only //ppapi/buildflags should ever be reached when !enable_plugins.

This required moving some deps to `if (enable_plugins)` blocks.

Bug: 1306610, 1311822
Test: gn check out/fuchsia && gn check out/linux
Change-Id: I51fe19c4d1582fa4e572424e33eff1edcf14b2b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3561898
Commit-Queue: David Dorwin <ddorwin@chromium.org>
Auto-Submit: David Dorwin <ddorwin@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Commit-Queue: Derek Schuff <dschuff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#995895}
2022-04-26 01:36:51 +00:00
David Dorwin
7652a6c0e1 [ppapi] Finish removing //ppapi/examples/audio_encode/
The source file was removed in https://crrev.com/c/1574487, but the
build file and reference from //ppapi/examples:examples, which is not
being used, remained.

Change-Id: Icb6206eac28d3e552f2417c9372ec90b65755fbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3504790
Auto-Submit: David Dorwin <ddorwin@chromium.org>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Commit-Queue: Derek Schuff <dschuff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#978893}
2022-03-08 22:04:23 +00:00
Yuki Yamada
a0857a0393 Type conversion: 2-1. Add prevent_unsafe_narrowing to default_compiler_configs
This change is for “Enable Warnings for Implicit Conversions” project.

There are four steps to complete the project. Step 1. and step 3. are
required to split the change for step 2. into several CLs.
1. Disable prevent_unsafe_narrowing config
2. Add prevent_unsafe_narrowing to default_compiler_configs and remove
   the config (`configs -= ...`) only where it is necessary
3. Enable prevent_unsafe_narrowing config again
4. Remove each `configs -= ...` added in step 2. and fix warnings

This is the first CL for step 2, which adds prevent_unsafe_narrowing to
default_compiler_configs and `configs -= ...` to some templates.
It is safe to merge this change with all the CQ bots green because there
should be some error when `configs -= ...` is added in a wrong place.

See the public one-pager for more details of this project:
go/enable-warnings-for-implicit-conversions (https://docs.google.com/document/d/1CTbQ-5cQjnjU8aCOtLiA7G6P0i5C6HpSDNlSNq6nl5E/edit?usp=sharing)

Bug: 1292951
Change-Id: I841517691b31d0d8e54965268a177c46e0ff7f49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3488757
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Derek Schuff <dschuff@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Yuki Yamada <yukiy@chromium.org>
Cr-Commit-Position: refs/heads/main@{#976177}
2022-03-01 10:55:34 +00:00
Derek Schuff
524635a70d Remove/replace bbudge in OWNERS files
Change-Id: I677b9b156ab006e84831b3ad7283f8d965780813
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3400344
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Owners-Override: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Derek Schuff <dschuff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#962192}
2022-01-22 01:40:10 +00:00
Peter Kasting
2ae7dcdb7d Fix some instances of -Wshadow.
Bug: 794619
Change-Id: I04381aa8fe38386c48581759b1b8750ad3f5c447
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3095662
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Joe Downing <joedow@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Roger Tawa <rogerta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#912811}
2021-08-18 00:04:11 +00:00
Nodir Turakulov
6dfb6d1acc [dirmd] Deduplicate directory metadata
Programmatically delete redundant metadata.
This CL is entirely machine-generated:
1. Export the metadata in the "original" and "reduced" forms:
   dirmd read -form original > ~/tmp/dirmd/original.json
   dirmd read -form reduced  > ~/tmp/dirmd/reduced.json
2. Run reduce.py
   Source code: https://gist.github.com/nodirg/a4803af94ffe258ba0a6e0a4807141d8

The script diffs the two JSON files and strips redundant
lines from DIR_METADATA files. If the file became empty, then
removes the file.

The results of the script was verified by diffing canonical
representation of `dirmd read -form full` before and after
the script: there is no diff.

Bug: 1179786
Change-Id: Ie5de3ba0962d266244ffb9b07c874b3dbbb69b9c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2795985
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Fred Mello <fredmello@chromium.org>
Owners-Override: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Nodir Turakulov <nodir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#883868}
2021-05-18 09:06:24 +00:00
Bill Budge
a05aa28f51 [Flash] Remove PPB_Flash_Fullscreen API
- Removes the Flash API, but leaves the resource and proxy which is
  used by PPB_Fullscreen.

Bug: chromium:1064652
Change-Id: I6e1e9ce5f30f3f3ee90fb758e8c1b7e4d4158846
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2464208
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#816717}
2020-10-13 19:43:22 +00:00
Edward Lesmes
d07a2a63b7 Add DIR_METADATA files to //ppapi
Add Generate DIR_METADATA files and remove metatada from OWNERS files for //ppapi.

R=bbudge@chromium.org

Bug: 1113033
Change-Id: I6b9b22d4d041d2ceb54a1467922087a6a35a3029
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454630
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814919}
2020-10-07 22:51:54 +00:00
Bill Budge
f7d8dd23bb [ppapi] Remove PPB_AudioEncoder API
- UMA shows this interface has no usage. This is a Dev API at 0.1.

Change-Id: I98aef1dcaf38c9203030526bbdf4e4e51b0e9497
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1574487
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814695}
2020-10-07 16:07:21 +00:00
Bill Budge
81da804125 [Flash] Remove some Flash APIs
- PPB_Flash_MessageLoop
- PPB_Flash_DRM
- PPB_Flash_Menu
- PPB_Flash_Clipboard
- PPB_Flash_Print
- PPB_Flash_File
- PPB_Flash

Bug: chromium:1064652
Change-Id: Ie9b661cab12c79dfc0ba2528989a661a1d4b49f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2446525
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814257}
2020-10-06 17:12:49 +00:00
Nico Weber
2c451b53e5 Reformat all gn files in /ppapi.
`gn format` recently changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.

Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.

This CL was uploaded by git cl split.

R=bbudge@chromium.org

Bug: 1041419
Change-Id: Ib80f67bc1f9a6a30349eb1289285585590abaffc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1997826
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#730701}
2020-01-13 19:15:58 +00:00
Eric Roman
c7fe4edac3 Remove //third_party/pyftpdlib.
The copy in third_party is unused, as .vypthon is already pulling in version 0.7 used by the test server.

TBR: rogerta@chromium.org,skyostil@chromium.org,raymes@chromium.org
Change-Id: I417a3c3ac581b5b9cfe37d23bbc1ada6515730ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611621
Commit-Queue: Eric Roman <eroman@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: Matt Menke <mmenke@chromium.org>
Reviewed-by: Matt Mueller <mattm@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
Reviewed-by: Ben Wells <benwells@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Roger Tawa <rogerta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660057}
2019-05-15 19:07:59 +00:00
Antoine Labour
c0c56e43d0 Remove PPB_Compositor
It's incompatible with shared images / Vulkan, and it usage is extremely
low (not available on stable except for ARC, which doesn't use it any
more).

Bug: 918951
Change-Id: Ia01d2b276456536394fecffb39d5ea6c90cfe0de
Reviewed-on: https://chromium-review.googlesource.com/c/1396611
Commit-Queue: Antoine Labour <piman@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Ben Smith <binji@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621778}
2019-01-10 22:26:07 +00:00
Raul Tambre
2fcaf0a1e5 Fix null pointer arithmetic, re-enable -Wnull-pointer-arithmetic
Bug: 766891
Change-Id: Ib8cf38fb63d9494f21462ab55ce361775b107322
Reviewed-on: https://chromium-review.googlesource.com/c/1390003
Reviewed-by: Antoine Labour <piman@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: Lambros Lambrou <lambroslambrou@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619731}
2019-01-03 20:14:28 +00:00
Florent Castelli
de49ea19de Remove VideoDestination_Private and VideoSource_Private PPAPI
Those can only be used by the old Hangouts effect plugin and it isn't
used anymore.
Since those APIs depend on URL.createObjectURL(MediaStream) which is
deprecated, it is necessary to first remove them from the codebase
in order to continue removing URL.createObjectURL(MediaStream).

Bug: 852412
Change-Id: If64e8e7259a6d51ccf89362b59c9d6fc7c890a30
Reviewed-on: https://chromium-review.googlesource.com/1099159
Commit-Queue: Florent Castelli <orphis@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#588819}
2018-09-05 10:32:50 +00:00
Tom Anderson
ce772faa73 Remove references to exe_and_shlib_deps in src
After [1], a manual dependency on exe_and_shlib_deps is no longer necessary
since it's automatically added.  This CL removes all remaining manual references
to exe_and_shlib_deps.

[1] d7ed1f0a9c

BUG=845700
R=dpranke
TBR=sky,mark

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:ios-simulator-full-configs;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.chromium.android:android_compile_x64_dbg;master.tryserver.chromium.android:android_compile_x86_dbg;master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.linux:closure_compilation;master.tryserver.chromium.linux:linux_vr;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I647442fb09eba4c055697bf26504abc3b3284d94
Reviewed-on: https://chromium-review.googlesource.com/1073613
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#563028}
2018-05-30 22:20:37 +00:00
Florent Castelli
703cf3e54c Remove deprecated usage of URL.createObjectURL with MediaStream
Only straightforward usage has been removed, identified with regexp
"URL.createObjectURL.*stream".

Bug: 800767
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I83d563080b2f534e7d9e3062b1633017dc9a01a8
Reviewed-on: https://chromium-review.googlesource.com/878741
Commit-Queue: Florent Castelli <orphis@chromium.org>
Reviewed-by: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555378}
2018-05-02 14:04:21 +00:00
Daniel Bratell
b59e9376b4 Corrected reused include guards
If the same include guard is used twice, it becomes impossible
to include both those headers in the same translation unit and
that can be hard to debug and understand. This patch renames
some include guards that have the same names (copy/paste) as
existing include guards.

Found while working on a PRESUBMIT test for include guards. It will
not warn for these things, but it was easy to add that test locally.

There are another few thousand files that have wrongly named
include guards. Left as an exercise to the reader.

Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Ic7ba08558d3fbae0d3bee843f3092d472f8c643b
Reviewed-on: https://chromium-review.googlesource.com/937712
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Commit-Queue: Daniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#539800}
2018-02-28 12:30:52 +00:00
thomasanderson
b7a527720b Reland of Add missing dependencies on exe_and_shlib_deps (Chromium repo) (patchset id:1 of https://codereview.chromium.org/2912513002/ )
Reason for revert:
The failing build [1] failed because of an internal issue (gclient sync failure), not because of the original cl

[1] https://build.chromium.org/p/chromium.linux/builders/Deterministic%20Linux/builds/3055

Original issue's description:
> Revert of Add missing dependencies on exe_and_shlib_deps (Chromium repo) (patchset  id:60001 of https://codereview.chromium.org/2899403004/ )
>
> Reason for revert:
> BUG=726808
>
> Suspecting causing generate_build_files failure (according to FindIt)
>
> Original issue's description:
> > Add missing dependencies on exe_and_shlib_deps (Chromium repo)
> >
> > BUG=723069
> > R=brettw@chromium.org
> > CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_chromium_msan_rel_ng;master.tryserver.chromium.linux:linux_chromium_ubsan_rel_ng
> >
> > Review-Url: https://codereview.chromium.org/2899403004
> > Cr-Commit-Position: refs/heads/master@{#475059}
> > Committed: 9e926233bf
>
> TBR=brettw@chromium.org,davidben@chromium.org,thomasanderson@google.com,thomasanderson@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=723069
>
> Review-Url: https://codereview.chromium.org/2912513002
> Cr-Commit-Position: refs/heads/master@{#475077}
> Committed: 0503f5125e

TBR=brettw@chromium.org,davidben@chromium.org,thomasanderson@google.com,nednguyen@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=726808

Review-Url: https://codereview.chromium.org/2911643003
Cr-Commit-Position: refs/heads/master@{#475086}
2017-05-26 19:26:42 +00:00
nednguyen
0503f5125e Revert of Add missing dependencies on exe_and_shlib_deps (Chromium repo) (patchset id:60001 of https://codereview.chromium.org/2899403004/ )
Reason for revert:
BUG=726808

Suspecting causing generate_build_files failure (according to FindIt)

Original issue's description:
> Add missing dependencies on exe_and_shlib_deps (Chromium repo)
>
> BUG=723069
> R=brettw@chromium.org
> CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_chromium_msan_rel_ng;master.tryserver.chromium.linux:linux_chromium_ubsan_rel_ng
>
> Review-Url: https://codereview.chromium.org/2899403004
> Cr-Commit-Position: refs/heads/master@{#475059}
> Committed: 9e926233bf

TBR=brettw@chromium.org,davidben@chromium.org,thomasanderson@google.com,thomasanderson@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=723069

Review-Url: https://codereview.chromium.org/2912513002
Cr-Commit-Position: refs/heads/master@{#475077}
2017-05-26 19:04:51 +00:00
thomasanderson
9e926233bf Add missing dependencies on exe_and_shlib_deps (Chromium repo)
BUG=723069
R=brettw@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_chromium_msan_rel_ng;master.tryserver.chromium.linux:linux_chromium_ubsan_rel_ng

Review-Url: https://codereview.chromium.org/2899403004
Cr-Commit-Position: refs/heads/master@{#475059}
2017-05-26 18:09:01 +00:00
ymzhang
c5e6cf2681 Add TEAM/COMPONENT
BUG=679905

Review-Url: https://codereview.chromium.org/2668773002
Cr-Commit-Position: refs/heads/master@{#447563}
2017-02-01 18:55:24 +00:00
mgiuca
6c27f66607 Replace the term 'poor man' with another phrase (gender-neutral fixit).
BUG=542537
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng

Review-Url: https://codereview.chromium.org/2532483003
Cr-Commit-Position: refs/heads/master@{#436211}
2016-12-05 01:46:36 +00:00
foolip
04209ec5b0 Use RTCPeerConnection instead of webkitRTCPeerConnection
Cases where the second argument (constraints) is used are left alone, as
a reminder that this isn't standarized behavior.

BUG=658423

Review-Url: https://codereview.chromium.org/2446173002
Cr-Commit-Position: refs/heads/master@{#427662}
2016-10-26 10:44:48 +00:00
foolip
febb0c97b0 Expose the MediaStream interface
Intent to Ship:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/9WIVyDz1T34/5Nmj46UXAwAJ

BUG=649331

Review-Url: https://codereview.chromium.org/2365883002
Cr-Commit-Position: refs/heads/master@{#421502}
2016-09-28 12:33:48 +00:00
rsesek
4a73557574 [Mac/GN] Get //ppapi tests and examples working.
BUG=431177

Review URL: https://codereview.chromium.org/1903623002

Cr-Commit-Position: refs/heads/master@{#388372}
2016-04-20 00:19:27 +00:00
lionel.g.landwerlin
67bd3bd3dc ppapi: examples: audio_encode: fix opus comments
The genereated Ogg/Opus files don't seem to play in Chromium (which uses
ffmpeg) while they do VLC or Gstreamer. Turns out we have the wrong flag
set on the OpusTags packet and a wrong size written for one of the strings.

BUG=none
TEST=play the generated file on Chromium

Review URL: https://codereview.chromium.org/1640703002

Cr-Commit-Position: refs/heads/master@{#371778}
2016-01-27 13:01:42 +00:00
lionel.g.landwerlin
f0c88d2d5e ppapi: examples: audio_encode: prevent buffer reallocations
Prevent buffer reallocations by using an array of buffers to save encoded
audio data in and just create a buffer to contain all of them when the user
wants to save the data to a file.

BUG=570837

Review URL: https://codereview.chromium.org/1569553004

Cr-Commit-Position: refs/heads/master@{#370940}
2016-01-22 10:53:09 +00:00
avi
e029c4134f Switch to standard integer types in ppapi/.
BUG=138542
TBR=bbudge@chromium.org
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/1548813002

Cr-Commit-Position: refs/heads/master@{#366718}
2015-12-23 06:46:20 +00:00
lionel.g.landwerlin
862936571c ppapi: add AudioEncode example
BUG=461222

Review URL: https://codereview.chromium.org/1343273005

Cr-Commit-Position: refs/heads/master@{#365010}
2015-12-14 12:43:41 +00:00
thestig
d8ecc8472d PPAPI: Remove PPB_Font_Dev.
TBR=brettw@chromium.org

Review URL: https://codereview.chromium.org/1428653002

Cr-Commit-Position: refs/heads/master@{#357449}
2015-11-02 22:29:41 +00:00
lpique
9dd55e546c Introduce a client minimum picture pool size
When using the video decoder PPAPI, the most recent version of the ARC extension requires there to be a certain minimum number of picture buffers in flight (allocated but not released). Without a larger pool, ARC video decoding will stall trying to allocate more decoded picture frames than are available by default.

This patch creates a new DEV interface version for the VideoDecoder PPAPI. The new interface simply adds a single new argument to VideoDecoder::Initialize() so that a PPAPI client indicate the minimum number of pictures it needs to function.

In order to implement this minium picture count, the meaning of the ProvidePictureBuffers() interface call used by the video decoder implementations has changed slightly. After making the call to ProvidePictureBuffers() with a given picture buffer size, the subsequent callback via AssignPictureBuffers() includes a std::vector of buffers that might be larger than requested.

I've adjusted the various implementations to handle this change -- most of them previously assumed and asserted that the count was the same.

In particular this meant moving some code around in the V4L2 implementations since they also do some internal allocations based on the number of picture buffers that actually end up being chosen.

BUG=485775

Review URL: https://codereview.chromium.org/1207043002

Cr-Commit-Position: refs/heads/master@{#344391}
2015-08-20 01:07:22 +00:00
lionel.g.landwerlin
dec70f66db pepper: add software vp9 encoder support to PPB_VideoEncoder
BUG=455409
TEST=run the video_encode NaCl SDK example using the vp9 encoder

Review URL: https://codereview.chromium.org/1132833002

Cr-Commit-Position: refs/heads/master@{#341970}
2015-08-05 20:53:29 +00:00
lionel.g.landwerlin
0141e7812a ppapi: VideoEncoder: augment precision of the IVF container
Use millisecond timestamps in the IVF container rather than having
1.0/30 units of time. This prevents a drift in the replay of the
video because the recorder might not schedule frames at exactly
33.3333ms.

BUG=503153
TEST=record a 2 minutes vp8 video using the video encoder NaCl SDK and verify the produced video last exactly 2 minutes

Review URL: https://codereview.chromium.org/1226203010

Cr-Commit-Position: refs/heads/master@{#338694}
2015-07-14 15:58:00 +00:00
lionel.g.landwerlin
cd74d5568a ppapi: VideoEncoder: prevent scheduling encoding multiple times
The ScheduleNextEncode() can be called at multiple stages in the
example depending on whether it needs to reconfigure the
MediaVideoStreamTrack. This can lead the example to encode at twice
30fps. At this speed we can exhaust the 33ms lifespan of video
buffers, leading to errors in the example plugins which can't retrieve
new frames to respect the 30fps framerate.

BUG=503153
TEST=run video_encoder example from NaCl SDK with VP8 codec and verify there are no error messages after 1 minute

Review URL: https://codereview.chromium.org/1218513003

Cr-Commit-Position: refs/heads/master@{#336850}
2015-06-30 19:26:10 +00:00
lionel.g.landwerlin
bfa767842b ppapi: VideoEncoder: improve accuracy of encoding tick
The current VideoEncoder example's scheduling algorithm for encoding frames at
30fps drifts as it schedules new callbacks and as a consequence
records fewer frames than what the frame rate requires.
This change improves the algorithm by storing the last time at which it
encoded a frame and uses this information to predict when the next tick should
happen.

BUG=none
TEST=record 30s of video using the video encoder example, check that the produced stream's length is identical (1 or 2 frames difference)

Review URL: https://codereview.chromium.org/1187193006

Cr-Commit-Position: refs/heads/master@{#335147}
2015-06-18 22:38:47 +00:00
tommycli
0a9a5fe4ac Plugin Power Saver: Fix Dr. Memory leaks in browser tests.
Power Saver Test Plugin triggers Dr. Memory leaks under Windows. Most likely because the test process is destroyed before the out of process test plugin has a chance to free its Pepper resources (an image data).

This is because the test plugin is trying to draw new frames as fast as it possibly can. There's no reason for the test plugin to draw so many frames. In fact, it only needs one.

Changing the test plugin to draw only one frame fixes the issue for me (locally).

BUG=487492

Review URL: https://codereview.chromium.org/1182283002

Cr-Commit-Position: refs/heads/master@{#334407}
2015-06-15 18:11:01 +00:00
arajp
bc40fa3173 Pass correct length value in WebGamepads
While building WebGamepads during enumeration, length parameter is never
reset. It is always incremented. When end user re-connects gamepad, since
this variable is always incremented, it will exceed the max number of
supported gamepads ie 4 and leads to crash in plugins.

BUG=485507
R=scottmg, raymes, bbudge

Review URL: https://codereview.chromium.org/1136463002

Cr-Commit-Position: refs/heads/master@{#329151}
2015-05-11 14:18:57 +00:00
lionel.g.landwerlin
efb23ba854 ppapi: VideoEncoder: fix reported value for GetSupportedProfiles()
GetSupportedProfiles() should return the number of supported profiles
or a negative value in case of error. Prior to this change, we
reported PP_OK instead of the number of profiles.

BUG=455409

Review URL: https://codereview.chromium.org/1069653002

Cr-Commit-Position: refs/heads/master@{#325649}
2015-04-17 16:31:36 +00:00
tommycli
a1b9fb3524 PPAPI Examples: Fix painting in Graphics 2D example.
Releasing the Graphics2D at the end of the Repaint method causes the blue image to never be visible to anyone who runs the 2d.html example. (At least on Linux)

This saves the created Graphics 2D, saves it, and releases it when the plugin instance is destroyed.

BUG=

Review URL: https://codereview.chromium.org/1065733003

Cr-Commit-Position: refs/heads/master@{#324059}
2015-04-07 17:01:00 +00:00
lionel.g.landwerlin
7918cb6a78 content: pepper: VideoEncoder: add software encoder support
BUG=455409
TEST=run content_browsertests --gtest_filter=OutOfProcessPPAPITest.VideoEncoder

Review URL: https://codereview.chromium.org/956893002

Cr-Commit-Position: refs/heads/master@{#321790}
2015-03-23 16:36:32 +00:00
lionel.g.landwerlin
5f3145d574 Pepper: add video_encoder example
BUG=417589
TEST=run ppapi/examples/video_encode/video_encode.html

Review URL: https://codereview.chromium.org/937643006

Cr-Commit-Position: refs/heads/master@{#318785}
2015-03-02 22:46:16 +00:00
satorux
c96d5d2b62 Sort GYP and GN files under ppapi
For tools/sort_sources.py to be useful, existing GYP and GN files
should be sorted.

BUG=456014
TEST=everything should build as before

Review URL: https://codereview.chromium.org/930753002

Cr-Commit-Position: refs/heads/master@{#316434}
2015-02-16 07:10:22 +00:00
brettw
2f79efe67a Implement the rest of the PPAPI examples in the GN build.
This adds the "threading" example which was unreferenced in the GYP build, despite existing and compiling OK.

Review URL: https://codereview.chromium.org/921993002

Cr-Commit-Position: refs/heads/master@{#316379}
2015-02-14 06:54:47 +00:00
brettw
f7eb6caac0 Split apart the PPAPI GN targets
This puts BUILD files in the corresponding directories without duplicate names.

Adds a template for ppapi examples and writes the build for one example. I only did one at this point to test the infrastructure without making this patch too large.

NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/921953002

Cr-Commit-Position: refs/heads/master@{#316352}
2015-02-14 01:38:01 +00:00