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

Issue 14932020: Add Create() function to AudioCodecBridge and VideoCodecBridge to allow return of null pointers (Closed)

Created:
7 years, 7 months ago by qinmin
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Add Create() function to AudioCodecBridge and VideoCodecBridge to allow return of null pointers If codec is not supported, we should allow null pointers to be returned when trying to create a MediaCodecBridge. BUG=233420 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202323

Patch Set 1 #

Total comments: 2

Patch Set 2 : making ConfigureMediaCodec() return boolean #

Patch Set 3 : add unittest for unsupported codec #

Patch Set 4 : add test for ConfigureMediaCodec() #

Total comments: 4

Patch Set 5 : addressing comments #

Total comments: 6

Patch Set 6 : fix namespaces #

Patch Set 7 : fixing tests #

Patch Set 8 : fix android tests #

Patch Set 9 : fix build #

Patch Set 10 : rebase #

Patch Set 11 : another try, not sure why patch cannot apply #

Patch Set 12 : remove changes in media.gyp to see if patch can apply #

Patch Set 13 : remove dependency, remove target in another CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -70 lines) Patch
M build/all_android.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.h View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 4 3 chunks +9 lines, -3 lines 0 comments Download
A content/common/gpu/media/android_video_decode_accelerator_unittest.cc View 1 2 3 4 5 1 chunk +102 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -4 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecBridge.java View 1 2 3 4 5 6 7 2 chunks +30 lines, -2 lines 0 comments Download
M media/base/android/media_codec_bridge.h View 1 2 3 4 3 chunks +14 lines, -2 lines 0 comments Download
M media/base/android/media_codec_bridge.cc View 1 2 3 4 5 6 7 9 chunks +26 lines, -51 lines 0 comments Download
M media/base/android/media_codec_bridge_unittest.cc View 1 2 3 4 4 chunks +8 lines, -3 lines 0 comments Download
M media/base/android/media_jni_registrar.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M media/base/android/media_source_player.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
qinmin
PTAL
7 years, 7 months ago (2013-05-16 00:58:40 UTC) #1
dwkang1
https://chromiumcodereview.appspot.com/14932020/diff/1/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/14932020/diff/1/content/common/gpu/media/android_video_decode_accelerator.cc#newcode379 content/common/gpu/media/android_video_decode_accelerator.cc:379: void AndroidVideoDecodeAccelerator::ConfigureMediaCodec() { Could you make this return bool ...
7 years, 7 months ago (2013-05-16 01:53:53 UTC) #2
qinmin
https://chromiumcodereview.appspot.com/14932020/diff/1/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/14932020/diff/1/content/common/gpu/media/android_video_decode_accelerator.cc#newcode379 content/common/gpu/media/android_video_decode_accelerator.cc:379: void AndroidVideoDecodeAccelerator::ConfigureMediaCodec() { On 2013/05/16 01:53:54, dwkang1 wrote: > ...
7 years, 7 months ago (2013-05-16 04:07:43 UTC) #3
dwkang1
LGTM
7 years, 7 months ago (2013-05-16 04:43:14 UTC) #4
acolwell GONE FROM CHROMIUM
Please add a test that verifies the failure condition that you're adding support for.
7 years, 7 months ago (2013-05-16 14:28:32 UTC) #5
qinmin
On 2013/05/16 14:28:32, acolwell wrote: > Please add a test that verifies the failure condition ...
7 years, 7 months ago (2013-05-16 14:58:14 UTC) #6
acolwell GONE FROM CHROMIUM
On 2013/05/16 14:58:14, qinmin wrote: > On 2013/05/16 14:28:32, acolwell wrote: > > Please add ...
7 years, 7 months ago (2013-05-16 15:52:38 UTC) #7
qinmin
On 2013/05/16 15:52:38, acolwell wrote: > On 2013/05/16 14:58:14, qinmin wrote: > > On 2013/05/16 ...
7 years, 7 months ago (2013-05-16 22:47:58 UTC) #8
acolwell GONE FROM CHROMIUM
lgtm
7 years, 7 months ago (2013-05-17 14:17:18 UTC) #9
qinmin
+brettw for content/content_tests.gypi
7 years, 7 months ago (2013-05-17 16:03:57 UTC) #10
qinmin
ping. brettw, would you please take a look? I need OWNER stamp for content/content_tests.gypi
7 years, 7 months ago (2013-05-20 19:24:18 UTC) #11
brettw
https://chromiumcodereview.appspot.com/14932020/diff/13001/content/content_tests.gypi File content/content_tests.gypi (right): https://chromiumcodereview.appspot.com/14932020/diff/13001/content/content_tests.gypi#newcode992 content/content_tests.gypi:992: I think our rule is that the sources section ...
7 years, 7 months ago (2013-05-21 17:39:05 UTC) #12
qinmin
https://chromiumcodereview.appspot.com/14932020/diff/13001/content/content_tests.gypi File content/content_tests.gypi (right): https://chromiumcodereview.appspot.com/14932020/diff/13001/content/content_tests.gypi#newcode992 content/content_tests.gypi:992: On 2013/05/21 17:39:05, brettw wrote: > I think our ...
7 years, 7 months ago (2013-05-21 21:36:39 UTC) #13
brettw
https://chromiumcodereview.appspot.com/14932020/diff/34001/content/common/gpu/media/android_video_decode_accelerator_unittest.cc File content/common/gpu/media/android_video_decode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/14932020/diff/34001/content/common/gpu/media/android_video_decode_accelerator_unittest.cc#newcode20 content/common/gpu/media/android_video_decode_accelerator_unittest.cc:20: namespace { Namespace formatting: blank lines around beginning & ...
7 years, 7 months ago (2013-05-22 18:33:07 UTC) #14
qinmin
https://chromiumcodereview.appspot.com/14932020/diff/34001/content/common/gpu/media/android_video_decode_accelerator_unittest.cc File content/common/gpu/media/android_video_decode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/14932020/diff/34001/content/common/gpu/media/android_video_decode_accelerator_unittest.cc#newcode20 content/common/gpu/media/android_video_decode_accelerator_unittest.cc:20: namespace { On 2013/05/22 18:33:07, brettw wrote: > Namespace ...
7 years, 7 months ago (2013-05-22 19:02:17 UTC) #15
brettw
Normally I would expect a dependency on base run_all_unittests instead but I see the non-Android ...
7 years, 7 months ago (2013-05-22 19:38:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/14932020/41001
7 years, 7 months ago (2013-05-22 20:23:07 UTC) #17
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 7 months ago (2013-05-23 08:34:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/14932020/41001
7 years, 7 months ago (2013-05-23 16:09:20 UTC) #19
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 7 months ago (2013-05-23 23:27:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/14932020/77001
7 years, 7 months ago (2013-05-24 00:21:40 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=153390
7 years, 7 months ago (2013-05-24 06:18:56 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/14932020/104001
7 years, 7 months ago (2013-05-24 18:59:15 UTC) #23
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-24 19:14:07 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/14932020/137001
7 years, 7 months ago (2013-05-25 21:45:05 UTC) #25
commit-bot: I haz the power
7 years, 7 months ago (2013-05-26 02:04:26 UTC) #26
Message was sent while issue was closed.
Change committed as 202323

Powered by Google App Engine
This is Rietveld 408576698