Use promotion hint rect for overlay initial position

Desktop / Chromium - liberato@chromium.org [chromium.org] - 8 August 2017 13:42 EDT

When promoting video to an overlay in AVDA, we need to provide an initial rect for it. This CL sets that rect to be the same as the one for the most recent promotion hint, so that it lines up with wherever the non-overlay video quad was.

It also introduces a delay before switching to overlays when transitioning into fullscreen to give the blink layout time to finish. This makes the transition look much better.

Bug: 752504 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 Change-Id: I01b512c40cdffbbe597ebf7eadeb705bf406812f Reviewed-on: https://chromium-review.googlesource.com/602523

1d251d3 Use promotion hint rect for overlay initial position.
media/base/media_switches.cc | 2 +-
media/gpu/android/promotion_hint_aggregator.h | 2 +
media/gpu/android_video_decode_accelerator.cc | 36 ++++++++++++++
media/gpu/android_video_decode_accelerator.h | 7 +++
media/gpu/android_video_surface_chooser.h | 7 +++
media/gpu/android_video_surface_chooser_impl.cc | 13 +++--
.../android_video_surface_chooser_impl_unittest.cc | 56 +++++++++++++++++++---
media/gpu/avda_codec_image.cc | 2 +
8 files changed, 113 insertions(+), 12 deletions(-)

Upstream: git.chromium.org


  • Share