|
media: Clean up MediaCodecBridge and remove subclasses
Previously we had two subclasses of MediaCodecBridgeImpl,
VideoCodecBridge and AudioCodecBridge, which have become unnecessary.
For simplicity and ease of mocking, now we just have
MediaCodecBridgeImpl.
This CL also includes various cleanups, including:
* MediaCodecBridge factories return unique_ptrs.
* Remove some unused MCB functions.
* Use the java enum generator where possible to sync native and java
enums.
* Collapsing DEQUEUE_OUTPUT_TRY_AGAIN and DEQUEUE_INPUT_TRY_AGAIN into
a single TRY_AGAIN (like MediaCodec).
* Remove size params from isAdaptivePlaybackSupported() because they
weren't used.
* Localizing codec to mime type conversions to MediaCodecUtil.
* Passing mime strings to MediaCodecUtil::CanDecode() instead of an
ad-hoc codec name string.
BUG= 691828
TEST=existing tests
CQ_INCLUDE_TRYBOTS=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/2697643003
Cr-Commit-Position: refs/heads/master@{#452334}
Committed: https://chromium.googlesource.com/chromium/src/+/c71ef8d720f0aea74a3ac4efe15df87670fa3875
Total comments: 6
Total comments: 9
Total comments: 3
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+741 lines, -968 lines) |
Patch |
|
M |
components/cdm/browser/cdm_message_filter_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+32 lines, -23 lines |
0 comments
|
Download
|
|
M |
media/base/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/base/android/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
media/base/android/java/src/org/chromium/media/CodecProfileLevelList.java
|
View
|
1
2
3
4
5
6
7
8
9
10
|
9 chunks |
+35 lines, -64 lines |
0 comments
|
Download
|
|
M |
media/base/android/java/src/org/chromium/media/MediaCodecBridge.java
|
View
|
|
14 chunks |
+29 lines, -44 lines |
0 comments
|
Download
|
|
M |
media/base/android/java/src/org/chromium/media/MediaCodecUtil.java
|
View
|
1
|
5 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_bridge.h
|
View
|
1
2
|
4 chunks |
+33 lines, -28 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_bridge_impl.h
|
View
|
1
2
3
4
5
|
4 chunks |
+39 lines, -164 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_bridge_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
14 chunks |
+313 lines, -403 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_bridge_impl_unittest.cc
|
View
|
|
6 chunks |
+62 lines, -58 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_direction.h
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_loop.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_loop_unittest.cc
|
View
|
|
9 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_util.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
5 chunks |
+12 lines, -22 lines |
0 comments
|
Download
|
|
M |
media/base/android/media_codec_util.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
7 chunks |
+67 lines, -62 lines |
0 comments
|
Download
|
|
M |
media/base/android/mock_media_codec_bridge.h
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/base/android/mock_media_codec_bridge.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/base/encryption_scheme.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
media/base/video_codecs.h
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
media/filters/android/media_codec_audio_decoder.cc
|
View
|
|
2 chunks |
+7 lines, -16 lines |
0 comments
|
Download
|
|
M |
media/gpu/android/media_codec_video_decoder.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
media/gpu/android_video_decode_accelerator.h
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/gpu/android_video_decode_accelerator.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
|
M |
media/gpu/android_video_encode_accelerator.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/gpu/android_video_encode_accelerator.cc
|
View
|
|
5 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
media/gpu/avda_codec_allocator.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/gpu/avda_codec_allocator.cc
|
View
|
|
4 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
|
M |
media/gpu/avda_codec_allocator_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/gpu/avda_codec_image.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/gpu/avda_codec_image.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/gpu/avda_picture_buffer_manager.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/gpu/avda_picture_buffer_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 86 (53 generated)
|