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

Issue 2892083002: Send enter / exit fullscreen signal to AVDA (Closed)

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

Description

Send enter / exit fullscreen signal to AVDA This CL causes WMPI to notify AVDA when the player element enters / exits fullscreen. This will help AVDA to choose whether to use an overlay or SurfaceTexture to back the video frames. It also replaces the (surface id, routing token) pair that is sent via the Provide/RequestOverlayInfoCB with an OverlayInfo struct. This structure contains the surface id and routing token, plus the current fullscreen state, if it is known. BUG=662995 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/2892083002 Cr-Commit-Position: refs/heads/master@{#478048} Committed: https://chromium.googlesource.com/chromium/src/+/fe8f969833ed376460af94787e2572755e598575

Patch Set 1 #

Patch Set 2 : added avda support #

Patch Set 3 : started sending fullscreen hints #

Patch Set 4 : rebased #

Patch Set 5 : added overlay_info.cc #

Patch Set 6 : made wmpi contain OverlayInfo::RoutingToken #

Patch Set 7 : unit test #

Total comments: 10

Patch Set 8 : cl feedback #

Patch Set 9 : unittests #

Patch Set 10 : ate snack, decided test is too paranoid. cleaned it up a bit. #

Patch Set 11 : added constructor tests #

Total comments: 8

Patch Set 12 : more cl feedback #

Total comments: 22

Patch Set 13 : removed lots of Optional<> #

Patch Set 14 : more cl feedback #

Patch Set 15 : fixed a comment #

Patch Set 16 : fixed more comments #

Total comments: 7

Patch Set 17 : fixed a comment #

Patch Set 18 : removed Optional<> in wmpi for routing token #

Patch Set 19 : rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -125 lines) Patch
M media/base/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M media/base/overlay_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +29 lines, -4 lines 0 comments Download
A media/base/overlay_info.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +14 lines, -7 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +34 lines, -29 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -6 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +6 lines, -12 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +44 lines, -26 lines 0 comments Download
M media/gpu/android_video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +29 lines, -2 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -2 lines 0 comments Download
M media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -5 lines 0 comments Download
M media/gpu/ipc/common/media_messages.h View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M media/gpu/ipc/common/media_param_traits_macros.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -3 lines 0 comments Download
M media/gpu/ipc/service/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -5 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +5 lines, -11 lines 0 comments Download
M media/video/video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 57 (36 generated)
liberato (no reviews please)
i'm not sure that i like how OverlayInfo is structured, but i wasn't able to ...
3 years, 7 months ago (2017-05-24 18:34:53 UTC) #11
tguilbert
https://codereview.chromium.org/2892083002/diff/120001/media/base/overlay_info.cc File media/base/overlay_info.cc (right): https://codereview.chromium.org/2892083002/diff/120001/media/base/overlay_info.cc#newcode30 media/base/overlay_info.cc:30: if (other.routing_token) Is there a reason why |is_fullscreen| is ...
3 years, 7 months ago (2017-05-24 19:14:54 UTC) #12
liberato (no reviews please)
thanks for the feedback. still thinking about an appropriate name for |= . -fl https://codereview.chromium.org/2892083002/diff/120001/media/base/overlay_info.cc ...
3 years, 7 months ago (2017-05-24 21:21:07 UTC) #13
liberato (no reviews please)
|= => MergeWith. also, unittests for MergeWith. particularly happy with the helper function in the ...
3 years, 7 months ago (2017-05-24 22:06:29 UTC) #16
tguilbert
LGTM! Patch #10 has the best description I've read so far. https://codereview.chromium.org/2892083002/diff/200001/media/base/overlay_info.h File media/base/overlay_info.h (right): ...
3 years, 7 months ago (2017-05-24 22:47:58 UTC) #21
liberato (no reviews please)
https://codereview.chromium.org/2892083002/diff/200001/media/base/overlay_info.h File media/base/overlay_info.h (right): https://codereview.chromium.org/2892083002/diff/200001/media/base/overlay_info.h#newcode13 media/base/overlay_info.h:13: #include "media/base/surface_manager.h" On 2017/05/24 22:47:58, tguilbert wrote: > Remove ...
3 years, 7 months ago (2017-05-25 05:42:50 UTC) #26
liberato (no reviews please)
+dcheng: PTAL @ various ipc bits. thanks -fl
3 years, 7 months ago (2017-05-25 16:31:34 UTC) #30
watk
https://codereview.chromium.org/2892083002/diff/220001/media/base/overlay_info.h File media/base/overlay_info.h (right): https://codereview.chromium.org/2892083002/diff/220001/media/base/overlay_info.h#newcode26 media/base/overlay_info.h:26: using RoutingToken = base::Optional<base::UnguessableToken>; Move to the top. From ...
3 years, 7 months ago (2017-05-25 18:09:37 UTC) #31
liberato (no reviews please)
this one doesn't have base::Optional<> in OverlayInfo. overall, i like it better. WMPI still needs ...
3 years, 7 months ago (2017-05-25 21:26:56 UTC) #32
watk
lgtm https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.cc#newcode393 media/blink/webmediaplayer_impl.cc:393: // it will display properly. Move comment down ...
3 years, 7 months ago (2017-05-25 21:36:21 UTC) #33
dcheng
https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.h#newcode784 media/blink/webmediaplayer_impl.h:784: base::Optional<OverlayInfo::RoutingToken> overlay_routing_token_; Hmm, isn't this an Optional<Optional<OverlayInfo::RoutingToken>> due to ...
3 years, 6 months ago (2017-06-02 15:30:06 UTC) #34
liberato (no reviews please)
https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.cc#newcode393 media/blink/webmediaplayer_impl.cc:393: // it will display properly. On 2017/05/25 21:36:20, watk ...
3 years, 6 months ago (2017-06-02 18:18:59 UTC) #35
dcheng
LGTM https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.h#newcode784 media/blink/webmediaplayer_impl.h:784: base::Optional<OverlayInfo::RoutingToken> overlay_routing_token_; On 2017/06/02 18:18:59, liberato wrote: > ...
3 years, 6 months ago (2017-06-05 18:32:10 UTC) #36
dcheng
On 2017/06/05 18:32:10, dcheng wrote: > LGTM > > https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.h > File media/blink/webmediaplayer_impl.h (right): > ...
3 years, 6 months ago (2017-06-05 18:35:56 UTC) #37
liberato (no reviews please)
thanks for the comments! -fl https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2892083002/diff/300001/media/blink/webmediaplayer_impl.h#newcode784 media/blink/webmediaplayer_impl.h:784: base::Optional<OverlayInfo::RoutingToken> overlay_routing_token_; On 2017/06/05 ...
3 years, 6 months ago (2017-06-07 20:06:34 UTC) #38
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/2892083002/340001
3 years, 6 months ago (2017-06-07 20:07:36 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/436736) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-07 20:10:18 UTC) #43
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/2892083002/360001
3 years, 6 months ago (2017-06-07 21:16:13 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/436796) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-07 21:31:51 UTC) #52
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/2892083002/360001
3 years, 6 months ago (2017-06-08 17:16:51 UTC) #54
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 19:17:55 UTC) #57
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/fe8f969833ed376460af94787e25...

Powered by Google App Engine
This is Rietveld 408576698