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

Issue 1681613002: Remove MediaCodecBridge::GetOutputBuffersCount() and GetOutputBuffersCapacity() (Closed)

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

Description

Remove MediaCodecBridge::GetOutputBuffersCount() and GetOutputBuffersCapacity() The calls were deprecated here: https://crrev.com/669623004, and this broke HW VP8 encoding. This is because GetOutputBuffersCapacity() returns -1, causing an invalid shared memory allocation. This CL removes the need for GetOutputBuffersCount() and GetOutputBuffersCapacity() and replaces them with reasonable defaults instead. HW VP8 encoding will still not work after this CL, because another CL broke it as well: https://crrev.com/1472943002. That will be fixed in a follow-up CL. BUG=445320 Committed: https://crrev.com/9dab4cbf48d2a8828915beaf7c90c6607d48d68b Cr-Commit-Position: refs/heads/master@{#374971}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -80 lines) Patch
M content/common/gpu/media/android_video_encode_accelerator.h View 2 chunks +3 lines, -6 lines 0 comments Download
M content/common/gpu/media/android_video_encode_accelerator.cc View 1 7 chunks +19 lines, -29 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecBridge.java View 3 chunks +1 line, -16 lines 0 comments Download
M media/base/android/media_codec_bridge.h View 1 chunk +0 lines, -8 lines 0 comments Download
M media/base/android/media_codec_bridge.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.h View 1 chunk +0 lines, -2 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.cc View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
magjed_chromium
qinmin - Please take a look. https://codereview.webrtc.org/1681613002/diff/1/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java File media/base/android/java/src/org/chromium/media/MediaCodecBridge.java (left): https://codereview.webrtc.org/1681613002/diff/1/media/base/android/java/src/org/chromium/media/MediaCodecBridge.java#oldcode317 media/base/android/java/src/org/chromium/media/MediaCodecBridge.java:317: mMediaCodec.getInputBuffer(index); qinmin: What ...
4 years, 10 months ago (2016-02-08 21:58:04 UTC) #3
qinmin
lgtm
4 years, 10 months ago (2016-02-09 20:09:00 UTC) #4
magjed_chromium
+dalecurtis for content/common/gpu/media/android_video_decode_accelerator.* OWNER
4 years, 10 months ago (2016-02-10 13:01:05 UTC) #6
DaleCurtis
+liberato for avda changes. I'll stamp after he's happy. https://codereview.chromium.org/1681613002/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/1681613002/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc#newcode168 content/common/gpu/media/android_video_encode_accelerator.cc:168: ...
4 years, 10 months ago (2016-02-10 17:52:48 UTC) #9
liberato (no reviews please)
https://codereview.chromium.org/1681613002/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/1681613002/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc#newcode405 content/common/gpu/media/android_video_encode_accelerator.cc:405: media_codec_->GetOutputFormat(&width, &height); i don't understand the goal of asking ...
4 years, 10 months ago (2016-02-10 18:40:09 UTC) #10
magjed_chromium
https://codereview.chromium.org/1681613002/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc File content/common/gpu/media/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/1681613002/diff/1/content/common/gpu/media/android_video_encode_accelerator.cc#newcode168 content/common/gpu/media/android_video_encode_accelerator.cc:168: unsigned int frame_input_count; On 2016/02/10 17:52:48, DaleCurtis wrote: > ...
4 years, 10 months ago (2016-02-10 20:25:12 UTC) #12
liberato (no reviews please)
android_video_encode_accelerator.cc: lgtm
4 years, 10 months ago (2016-02-11 15:29:54 UTC) #13
DaleCurtis
lgtm
4 years, 10 months ago (2016-02-11 17:26:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681613002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681613002/40001
4 years, 10 months ago (2016-02-11 17:35:36 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 10 months ago (2016-02-11 20:21:45 UTC) #19
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:37:39 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9dab4cbf48d2a8828915beaf7c90c6607d48d68b
Cr-Commit-Position: refs/heads/master@{#374971}

Powered by Google App Engine
This is Rietveld 408576698