Description[Mojo Video Capture] Add test coverage for accelerated jpeg decoding
This CL adds test cases to VideoCaptureBrowserTest that exercise the code path
for accelerated jpeg decoding using a fake decode accelerator.
* Add a FakeJpegDecodeAccelerator that can run in the GPU process and decodes
jpeg frames in software using libyuv.
* Add a command-line flag kUseFakeJpegDecodeAccelerator to enable the fake
accelerator (and suppress any "real" ones if present).
* Fix threading-related DCHECKs in GpuJpegDecodeAccelerator::Client to match
what is actually happening. This is needed to make the new test cases pass.
It also fixes issue 688184 [1].
This CL is part of the Mojo Video Capture work. For the bigger picture,
see [2] CL14.
BUG=584797, 688184
TEST=
content_browsertests --gtest_filter="VideoCaptureBrowserTest.*"
[1] https://bugs.chromium.org/p/chromium/issues/detail?id=688184
[2] https://docs.google.com/a/chromium.org/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit?usp=sharing
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
Review-Url: https://codereview.chromium.org/2735083002
Cr-Commit-Position: refs/heads/master@{#458782}
Committed: https://chromium.googlesource.com/chromium/src/+/ac2f201c499c2d65a5d43b6ce49d9af5b4520f99
Patch Set 1 #
Total comments: 26
Patch Set 2 : incorporate mcasas@'s suggestions #Patch Set 3 : Removed OnStoppedUsingGpuDecode() event. #
Total comments: 12
Patch Set 4 : Incorporated suggestions from Patch Set 3 #
Total comments: 2
Patch Set 5 : Remove example code that accidentally slipped in with Patch Set 4 #
Total comments: 11
Patch Set 6 : Incorporated emircan@'s suggestions #
Total comments: 5
Patch Set 7 : Rebase to March 14 and Do not actually decode Jpeg frames #
Total comments: 2
Patch Set 8 : Rebase to March 15th, Remove #include jpeg_parser #Dependent Patchsets: Messages
Total messages: 81 (51 generated)
|