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

Issue 2889603005: Position overlays in AVDACodecImage (Closed)

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

Description

Position overlays in AVDACodecImage This CL adds a call to ScheduleLayout from AVDACodecImage. To get the overlay, AVDASharedState now holds a reference to the surface bundle. It registers for DestroyedCB notification from the overlay, and drops the reference if this happens. This will have the side-effect of keeping the overlay around even if the decoder is destroyed. For CVV, that's a no-op, since leaving fullscreen destroys the surface anyway, and the decoder is only destroyed when not in fullscreen. BUG=722933 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/2889603005 Cr-Commit-Position: refs/heads/master@{#472590} Committed: https://chromium.googlesource.com/chromium/src/+/95c9282a9c8b5773f4f25f78fe829479d40304fa

Patch Set 1 #

Total comments: 5

Patch Set 2 : rebased #

Total comments: 14

Patch Set 3 : cl feedback #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -73 lines) Patch
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 1 chunk +4 lines, -13 lines 0 comments Download
M media/gpu/avda_codec_image.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/gpu/avda_codec_image.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M media/gpu/avda_picture_buffer_manager.h View 1 2 4 chunks +13 lines, -18 lines 0 comments Download
M media/gpu/avda_picture_buffer_manager.cc View 1 2 1 chunk +18 lines, -13 lines 0 comments Download
M media/gpu/avda_shared_state.h View 5 chunks +24 lines, -8 lines 0 comments Download
M media/gpu/avda_shared_state.cc View 1 2 4 chunks +28 lines, -16 lines 0 comments Download
M media/gpu/avda_surface_bundle.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/gpu/content_video_view_overlay.cc View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
liberato (no reviews please)
this is the follow-up CL that i mentioned. it makes the surface bundle available to ...
3 years, 7 months ago (2017-05-16 18:31:32 UTC) #6
tguilbert
LGTM https://codereview.chromium.org/2889603005/diff/1/media/gpu/avda_shared_state.cc File media/gpu/avda_shared_state.cc (right): https://codereview.chromium.org/2889603005/diff/1/media/gpu/avda_shared_state.cc#newcode143 media/gpu/avda_shared_state.cc:143: surface_texture()->UpdateTexImage(); Is there ever a risk of a ...
3 years, 7 months ago (2017-05-16 20:41:59 UTC) #11
liberato (no reviews please)
thanks for the feedback. -fl https://codereview.chromium.org/2889603005/diff/1/media/gpu/avda_shared_state.cc File media/gpu/avda_shared_state.cc (right): https://codereview.chromium.org/2889603005/diff/1/media/gpu/avda_shared_state.cc#newcode143 media/gpu/avda_shared_state.cc:143: surface_texture()->UpdateTexImage(); On 2017/05/16 20:41:59, ...
3 years, 7 months ago (2017-05-16 20:59:53 UTC) #12
watk
https://codereview.chromium.org/2889603005/diff/20001/media/gpu/avda_picture_buffer_manager.cc File media/gpu/avda_picture_buffer_manager.cc (right): https://codereview.chromium.org/2889603005/diff/20001/media/gpu/avda_picture_buffer_manager.cc#newcode77 media/gpu/avda_picture_buffer_manager.cc:77: shared_state_ = nullptr; delete now? https://codereview.chromium.org/2889603005/diff/20001/media/gpu/avda_picture_buffer_manager.cc#newcode92 media/gpu/avda_picture_buffer_manager.cc:92: // Only ...
3 years, 7 months ago (2017-05-17 19:45:14 UTC) #15
watk
https://codereview.chromium.org/2889603005/diff/1/media/gpu/avda_shared_state.cc File media/gpu/avda_shared_state.cc (right): https://codereview.chromium.org/2889603005/diff/1/media/gpu/avda_shared_state.cc#newcode153 media/gpu/avda_shared_state.cc:153: if (surface_bundle_ && surface_bundle_->overlay.get() == overlay) On 2017/05/16 20:59:52, ...
3 years, 7 months ago (2017-05-17 19:46:40 UTC) #16
liberato (no reviews please)
https://codereview.chromium.org/2889603005/diff/20001/media/gpu/avda_picture_buffer_manager.cc File media/gpu/avda_picture_buffer_manager.cc (right): https://codereview.chromium.org/2889603005/diff/20001/media/gpu/avda_picture_buffer_manager.cc#newcode77 media/gpu/avda_picture_buffer_manager.cc:77: shared_state_ = nullptr; On 2017/05/17 19:45:14, watk wrote: > ...
3 years, 7 months ago (2017-05-17 20:19:33 UTC) #17
watk
nice lgtm
3 years, 7 months ago (2017-05-17 20:35:58 UTC) #22
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/2889603005/60001
3 years, 7 months ago (2017-05-17 22:20:25 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 22:36:37 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/95c9282a9c8b5773f4f25f78fe82...

Powered by Google App Engine
This is Rietveld 408576698