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

Issue 2114473002: Remove usage of MediaCodec.getName(), use proxy instead. (Closed)

Created:
4 years, 5 months ago by DaleCurtis
Modified:
4 years, 5 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, mlamouri+watch-media_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove usage of MediaCodec.getName(), use proxy instead. This method does not exist API < 18 and it is simpler to just trust the |require_software_codec| value which is the inverse of |allow_autodetection_|. BUG=613238, 622927, 624482 TEST=none Committed: https://crrev.com/125c85c497ce34c57b28e83ec252a1c7b7f76231 Cr-Commit-Position: refs/heads/master@{#403197}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use proxy value. #

Patch Set 3 : Fix build. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -33 lines) Patch
M media/base/android/java/src/org/chromium/media/MediaCodecBridge.java View 1 2 2 chunks +5 lines, -16 lines 0 comments Download
M media/base/android/media_codec_bridge.h View 1 chunk +0 lines, -3 lines 0 comments Download
M media/base/android/ndk_media_codec_bridge.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/base/android/ndk_media_codec_bridge.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/base/android/sdk_media_codec_bridge.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 1 chunk +5 lines, -1 line 1 comment Download

Messages

Total messages: 20 (7 generated)
DaleCurtis
Haven't tested yet. I think we might also want to avoid stopping the thread with ...
4 years, 5 months ago (2016-06-30 00:27:00 UTC) #2
DaleCurtis
Updated, can't always post or we'll accumulate mediacodecs forever.
4 years, 5 months ago (2016-06-30 00:37:37 UTC) #5
watk
https://codereview.chromium.org/2114473002/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/2114473002/diff/1/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java#newcode230 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java:230: if (Build.VERSION.SDK_INT >= Build.VERSION.JELLY_BEAN_MR2) Needs to be Build.VERSION_CODES.JELLY_BEAN_MR2
4 years, 5 months ago (2016-06-30 00:38:21 UTC) #6
DaleCurtis
https://codereview.chromium.org/2114473002/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/2114473002/diff/1/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java#newcode230 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java:230: if (Build.VERSION.SDK_INT >= Build.VERSION.JELLY_BEAN_MR2) On 2016/06/30 at 00:38:20, watk ...
4 years, 5 months ago (2016-06-30 00:59:26 UTC) #7
DaleCurtis
Frank, if you see this tonight and like the approach, hit the CQ so we ...
4 years, 5 months ago (2016-06-30 01:02:05 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2114473002/40001
4 years, 5 months ago (2016-06-30 05:28:57 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 06:39:24 UTC) #12
liberato (no reviews please)
sorry, laptop isn't connecting to corp so no email last night. i like the approach, ...
4 years, 5 months ago (2016-06-30 14:59:28 UTC) #13
liberato (no reviews please)
On 2016/06/30 14:59:28, liberato wrote: > sorry, laptop isn't connecting to corp so no email ...
4 years, 5 months ago (2016-06-30 16:35:13 UTC) #14
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/2114473002/40001
4 years, 5 months ago (2016-06-30 16:35:37 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-30 16:39:56 UTC) #17
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 16:39:58 UTC) #18
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 16:41:30 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/125c85c497ce34c57b28e83ec252a1c7b7f76231
Cr-Commit-Position: refs/heads/master@{#403197}

Powered by Google App Engine
This is Rietveld 408576698