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

Issue 2692863011: Add ContentVideoViewOverlay to AVDA. (Closed)

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

Description

Add ContentVideoViewOverlay to AVDA. Wrap usage of ContentVideoView in an AndroidOverlay interface. This doesn't change the functionality, but starts to move AVDA towards using AndroidOverlays rather than hard-coding CVV. Much of Allocate/DeallocateSurface could be moved from AVDACodecAllocator to ContentVideoViewOverlay. However, to keep the size of this change small, it isn't yet. There shouldn't be any functional difference with this CL. BUG=667950 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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/2692863011 Cr-Commit-Position: refs/heads/master@{#456135} Committed: https://chromium.googlesource.com/chromium/src/+/c58e8f82526098f4ef3dca5f957a46c439540a59

Patch Set 1 #

Patch Set 2 : rebased #

Patch Set 3 : set state to NO_ERROR for setSurface, removed debug #

Patch Set 4 : updated comments #

Patch Set 5 : fixed avda_unittest #

Patch Set 6 : keep |overlay| longer in UpdateSurface, comments #

Total comments: 32

Patch Set 7 : rebased onto surface bundle #

Patch Set 8 : updated comments #

Patch Set 9 : starting using the correct surface id #

Patch Set 10 : make DequeueOutput require NO_ERROR from setsurface #

Total comments: 7

Patch Set 11 : cl feedback #

Patch Set 12 : fixed avda unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -72 lines) Patch
M media/base/android/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A media/base/android/android_overlay.h View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A media/base/android/android_overlay.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M media/gpu/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.h View 1 2 3 4 5 6 3 chunks +11 lines, -9 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +60 lines, -38 lines 0 comments Download
M media/gpu/avda_codec_allocator.h View 1 2 3 4 5 6 5 chunks +12 lines, -5 lines 0 comments Download
M media/gpu/avda_codec_allocator.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M media/gpu/avda_codec_allocator_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M media/gpu/avda_picture_buffer_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -7 lines 0 comments Download
M media/gpu/avda_picture_buffer_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -7 lines 0 comments Download
M media/gpu/avda_surface_bundle.h View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -1 line 0 comments Download
M media/gpu/avda_surface_bundle.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
A media/gpu/content_video_view_overlay.h View 1 2 3 4 5 6 7 1 chunk +46 lines, -0 lines 0 comments Download
A media/gpu/content_video_view_overlay.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
liberato (no reviews please)
as far as i can tell, it does everything exactly as before. just reorganizes it ...
3 years, 10 months ago (2017-02-17 18:34:38 UTC) #15
watk
Looks pretty good. Hopefully it will help us simplify this for MCVD because it's beyond ...
3 years, 10 months ago (2017-02-17 22:40:36 UTC) #16
liberato (no reviews please)
amazingly, this still plays video. it's a simpler change now that surface bundle handles most ...
3 years, 9 months ago (2017-03-07 21:30:25 UTC) #18
liberato (no reviews please)
i think this works now. i've tested both UpdateSurface and restart. it's ready for review. ...
3 years, 9 months ago (2017-03-08 22:35:44 UTC) #19
liberato (no reviews please)
https://codereview.chromium.org/2692863011/diff/180001/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (left): https://codereview.chromium.org/2692863011/diff/180001/media/gpu/android_video_decode_accelerator.cc#oldcode1239 media/gpu/android_video_decode_accelerator.cc:1239: codec_allocator_->DeallocateSurface(this, surface_id()); one difference with this CL is that, ...
3 years, 9 months ago (2017-03-08 22:48:59 UTC) #20
watk
I like this a lot! lgtm https://codereview.chromium.org/2692863011/diff/180001/media/base/android/android_overlay.cc File media/base/android/android_overlay.cc (right): https://codereview.chromium.org/2692863011/diff/180001/media/base/android/android_overlay.cc#newcode12 media/base/android/android_overlay.cc:12: } // namespace ...
3 years, 9 months ago (2017-03-10 02:19:44 UTC) #21
liberato (no reviews please)
thanks for the feedback! -fl https://codereview.chromium.org/2692863011/diff/180001/media/base/android/android_overlay.cc File media/base/android/android_overlay.cc (right): https://codereview.chromium.org/2692863011/diff/180001/media/base/android/android_overlay.cc#newcode12 media/base/android/android_overlay.cc:12: } // namespace media ...
3 years, 9 months ago (2017-03-10 17:40:56 UTC) #24
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/2692863011/200001
3 years, 9 months ago (2017-03-10 17:41:06 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/134696)
3 years, 9 months ago (2017-03-10 17:50:37 UTC) #27
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/2692863011/220001
3 years, 9 months ago (2017-03-10 18:05:57 UTC) #30
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 19:46:44 UTC) #33
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/c58e8f82526098f4ef3dca5f957a...

Powered by Google App Engine
This is Rietveld 408576698