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

Issue 2883913003: Add multiple destruction callbacks to AndroidOverlay. (Closed)

Created:
3 years, 7 months ago by liberato (no reviews please)
Modified:
3 years, 7 months ago
Reviewers:
watk, tguilbert
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, posciak+watch_chromium.org, viettrungluu+watch_chromium.org, avayvod+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, alokp+watch_chromium.org, piman+watch_chromium.org, darin (slow to review), mlamouri+watch-media_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add multiple destruction callbacks to AndroidOverlay. Rather than specify a single destruction callback in the config, this CL replace it with AndroidOverlay::AddDestructionCallback(). Multiple callbacks are called starting with the most recently registered. This allows multiple interested parties to find out when an overlay is destroyed. Additionally, AndroidVideoSurfaceChooser no longer provides a 'stop using overlay immediately' callback, since it was just aliased to a destruction callback anyway from the overlay. Instead, the client may AddDestructionCallback, if desired, to find out about overlay destruction when an overlay is provided by the chooser. 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/2883913003 Cr-Commit-Position: refs/heads/master@{#472529} Committed: https://chromium.googlesource.com/chromium/src/+/f989595632258d0cd667e7ef74ad5aec874329bc

Patch Set 1 #

Patch Set 2 : fixed comment #

Patch Set 3 : rebased #

Total comments: 8

Patch Set 4 : renamed methods, updated comments #

Patch Set 5 : rebased.... though i got not conflicts? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -121 lines) Patch
M media/base/android/android_overlay.h View 1 2 3 3 chunks +22 lines, -2 lines 0 comments Download
M media/base/android/android_overlay.cc View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M media/base/android/mock_android_overlay.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/base/android_overlay_config.h View 1 chunk +0 lines, -4 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M media/gpu/android_video_decode_accelerator_unittest.cc View 1 2 3 4 6 chunks +8 lines, -10 lines 0 comments Download
M media/gpu/android_video_surface_chooser.h View 1 2 chunks +0 lines, -6 lines 0 comments Download
M media/gpu/android_video_surface_chooser_impl.h View 2 chunks +0 lines, -3 lines 0 comments Download
M media/gpu/android_video_surface_chooser_impl.cc View 3 chunks +4 lines, -29 lines 0 comments Download
M media/gpu/android_video_surface_chooser_impl_unittest.cc View 3 chunks +0 lines, -60 lines 0 comments Download
M media/gpu/content_video_view_overlay.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/clients/mojo_android_overlay.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/clients/mojo_android_overlay_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (20 generated)
liberato (no reviews please)
this turns out to be much simpler than what i had in mind yesterday. there's ...
3 years, 7 months ago (2017-05-16 18:28:51 UTC) #12
watk
I like this more :) lgtm https://codereview.chromium.org/2883913003/diff/40001/media/base/android/android_overlay.cc File media/base/android/android_overlay.cc (right): https://codereview.chromium.org/2883913003/diff/40001/media/base/android/android_overlay.cc#newcode18 media/base/android/android_overlay.cc:18: if (!destruction_cbs_.size()) nit: ...
3 years, 7 months ago (2017-05-16 19:10:29 UTC) #13
tguilbert
LGTM https://codereview.chromium.org/2883913003/diff/40001/media/base/android/android_overlay.h File media/base/android/android_overlay.h (right): https://codereview.chromium.org/2883913003/diff/40001/media/base/android/android_overlay.h#newcode54 media/base/android/android_overlay.h:54: void AddDestructionCallback(AndroidOverlayConfig::DestroyedCB cb); Can you document the guarantees ...
3 years, 7 months ago (2017-05-16 19:11:51 UTC) #14
liberato (no reviews please)
thanks for the feedback. -fl https://codereview.chromium.org/2883913003/diff/40001/media/base/android/android_overlay.cc File media/base/android/android_overlay.cc (right): https://codereview.chromium.org/2883913003/diff/40001/media/base/android/android_overlay.cc#newcode18 media/base/android/android_overlay.cc:18: if (!destruction_cbs_.size()) On 2017/05/16 ...
3 years, 7 months ago (2017-05-16 20:04:02 UTC) #15
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/2883913003/60001
3 years, 7 months ago (2017-05-16 20:05:23 UTC) #18
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/2883913003/80001
3 years, 7 months ago (2017-05-16 21:05:25 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/428385)
3 years, 7 months ago (2017-05-16 23:11:49 UTC) #23
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/2883913003/80001
3 years, 7 months ago (2017-05-17 16:06:36 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 19:26:56 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/f989595632258d0cd667e7ef74ad...

Powered by Google App Engine
This is Rietveld 408576698