Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Issue 2672313006: media: Remove the unused NdkMediaCodecBridge (Closed)

Created:
3 years, 10 months ago by watk
Modified:
3 years, 10 months ago
CC:
agrieve+watch_chromium.org, avayvod+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, mlamouri+watch-media_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, qinmin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Remove the unused NdkMediaCodecBridge NdkMediaCodecBridge has been incomplete and unused since it was introduced over a year ago. Since we don't have short term plans to make it production ready, we'll remove it for now and bring it back if we need it later. Some rationale: * The NDK API is a second class citizen compared to the Java API, and is missing new APIs. For example, it's missing the callback API, and setOutputSurface(), which means we can't use it on Marshmallow. * It only works with 64 bit builds. * The benefit of removing JNI call overhead isn't expected to be very large anyway. JNI calls add 100s of nanoseconds to 10s of microseconds of overhead (according to internal mailing lists/docs). We have lower hanging fruit, like using MediaCodec's callback API instead of polling. This change includes collapsing SdkMediaCodecBridge into MediaCodecBridge. In doing that, MediaCodecLoop and its unit test no longer build cross-platform, so this CL also removes the "anywhere" targets. Alternatively we could have kept a platform independent virtual MediaCodecBridge interface with a single impl. BUG=560451 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/2672313006 Cr-Commit-Position: refs/heads/master@{#450529} Committed: https://chromium.googlesource.com/chromium/src/+/ddd685822dcdc6ec5e1fd32bb6ff3824d93c675c

Patch Set 1 #

Total comments: 12

Patch Set 2 : Keep pure virtula interface #

Total comments: 1

Patch Set 3 : s/class/struct in forward decl #

Patch Set 4 : cast literal 1 to size_t #

Patch Set 5 : rebase past conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -2088 lines) Patch
M media/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M media/base/android/BUILD.gn View 1 2 3 4 4 chunks +10 lines, -47 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecBridge.java View 2 chunks +8 lines, -11 lines 0 comments Download
M media/base/android/media_codec_bridge.h View 1 2 5 chunks +12 lines, -61 lines 0 comments Download
M media/base/android/media_codec_bridge.cc View 1 1 chunk +0 lines, -73 lines 0 comments Download
A + media/base/android/media_codec_bridge_impl.h View 1 5 chunks +106 lines, -39 lines 0 comments Download
A + media/base/android/media_codec_bridge_impl.cc View 1 2 3 19 chunks +88 lines, -55 lines 0 comments Download
A + media/base/android/media_codec_bridge_impl_unittest.cc View 1 9 chunks +12 lines, -14 lines 0 comments Download
M media/base/android/media_codec_loop.cc View 4 chunks +11 lines, -20 lines 0 comments Download
M media/base/android/mock_media_codec_bridge.h View 1 1 chunk +33 lines, -37 lines 0 comments Download
D media/base/android/ndk_media_codec_bridge.h View 1 chunk +0 lines, -85 lines 0 comments Download
D media/base/android/ndk_media_codec_bridge.cc View 1 chunk +0 lines, -263 lines 0 comments Download
D media/base/android/ndk_media_codec_wrapper.cc View 1 chunk +0 lines, -170 lines 0 comments Download
D media/base/android/sdk_media_codec_bridge.h View 1 chunk +0 lines, -193 lines 0 comments Download
D media/base/android/sdk_media_codec_bridge.cc View 1 chunk +0 lines, -689 lines 0 comments Download
D media/base/android/sdk_media_codec_bridge_unittest.cc View 1 chunk +0 lines, -310 lines 0 comments Download
M media/filters/android/media_codec_audio_decoder.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/filters/android/media_codec_audio_decoder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/android/media_codec_video_decoder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/android_video_decode_accelerator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/android_video_encode_accelerator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/avda_codec_allocator.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/avda_codec_allocator.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/avda_codec_image.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/avda_picture_buffer_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (22 generated)
watk
https://codereview.chromium.org/2672313006/diff/1/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java File media/base/android/java/src/org/chromium/media/MediaCodecBridge.java (right): https://codereview.chromium.org/2672313006/diff/1/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java#newcode242 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java:242: Log.w(TAG, "Codec released"); This change was kind of random. ...
3 years, 10 months ago (2017-02-07 02:45:03 UTC) #3
liberato (no reviews please)
https://codereview.chromium.org/2672313006/diff/1/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java File media/base/android/java/src/org/chromium/media/MediaCodecBridge.java (right): https://codereview.chromium.org/2672313006/diff/1/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java#newcode242 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java:242: Log.w(TAG, "Codec released"); On 2017/02/07 02:45:03, watk wrote: > ...
3 years, 10 months ago (2017-02-07 06:19:43 UTC) #4
DaleCurtis
I'm definitely in favor of either killing Audio/Video codec bridge or splitting them into their ...
3 years, 10 months ago (2017-02-07 20:08:02 UTC) #5
liberato (no reviews please)
https://codereview.chromium.org/2672313006/diff/1/media/base/android/media_codec_bridge.h File media/base/android/media_codec_bridge.h (right): https://codereview.chromium.org/2672313006/diff/1/media/base/android/media_codec_bridge.h#newcode147 media/base/android/media_codec_bridge.h:147: // This constructor is only for making this class ...
3 years, 10 months ago (2017-02-07 20:37:30 UTC) #6
watk
thanks! I put back the virtual interface https://codereview.chromium.org/2672313006/diff/1/media/base/android/media_codec_bridge.h File media/base/android/media_codec_bridge.h (right): https://codereview.chromium.org/2672313006/diff/1/media/base/android/media_codec_bridge.h#newcode147 media/base/android/media_codec_bridge.h:147: // This ...
3 years, 10 months ago (2017-02-08 02:53:58 UTC) #7
watk
ping. I addressed most of the requests in a follow up CL: https://codereview.chromium.org/2697643003/
3 years, 10 months ago (2017-02-14 01:41:42 UTC) #20
liberato (no reviews please)
sorry for the delay. lgtm. -fl
3 years, 10 months ago (2017-02-14 05:32:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2672313006/60001
3 years, 10 months ago (2017-02-14 19:55:27 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/153328) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-14 19:58:32 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2672313006/80001
3 years, 10 months ago (2017-02-14 20:05:46 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_optional_gpu_tests_rel on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_optional_gpu_tests_rel/builds/7309)
3 years, 10 months ago (2017-02-14 20:42:25 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2672313006/80001
3 years, 10 months ago (2017-02-14 23:35:26 UTC) #32
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 00:42:04 UTC) #35
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ddd685822dcdc6ec5e1fd32bb6ff...

Powered by Google App Engine
This is Rietveld 408576698