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

Issue 2507463004: Fix broken SurfaceView usage on < M devices. (Closed)

Created:
4 years, 1 month ago by DaleCurtis
Modified:
4 years, 1 month ago
Reviewers:
watk, dcheng
CC:
chromium-reviews, feature-media-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix broken SurfaceView usage on < M devices. This partially reverts commit 4b632fce277d847aa2c5a533478da715086c0b55 which added support for SurfaceView changes without a restart on M+ devices. Unfortunately we can't use SetSurface() prior to initialize on <M devices since the VDA hasn't been created by this point. The surface must be provided in the initial config. BUG=662251 TEST=enter/exit fullscreen on <M and >M device. CQ_INCLUDE_TRYBOTS=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 Committed: https://crrev.com/5b3c4d675143972351fe4e2d5c3ac903455f0a64 Cr-Commit-Position: refs/heads/master@{#432423}

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -26 lines) Patch
M media/filters/gpu_video_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/gpu_video_decoder.cc View 3 chunks +10 lines, -7 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 10 chunks +15 lines, -17 lines 6 comments Download
M media/gpu/ipc/common/media_param_traits_macros.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
DaleCurtis
Thanks for catching this Chris. +dcheng for media/gpu/ipc.
4 years, 1 month ago (2016-11-15 23:58:13 UTC) #3
dcheng
https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode394 media/gpu/android_video_decode_accelerator.cc:394: DCHECK(!pending_surface_id_); This isn't a new issue, but it makes ...
4 years, 1 month ago (2016-11-16 00:58:45 UTC) #4
DaleCurtis
https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode394 media/gpu/android_video_decode_accelerator.cc:394: DCHECK(!pending_surface_id_); On 2016/11/16 at 00:58:45, dcheng wrote: > This ...
4 years, 1 month ago (2016-11-16 01:04:29 UTC) #5
dcheng
https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode404 media/gpu/android_video_decode_accelerator.cc:404: DCHECK(g_avda_manager.Get().AllocateSurface(config_.surface_id, this)); On 2016/11/16 01:04:29, DaleCurtis wrote: > On ...
4 years, 1 month ago (2016-11-16 01:06:33 UTC) #6
watk
On 2016/11/16 01:06:33, dcheng wrote: > https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc > File media/gpu/android_video_decode_accelerator.cc (right): > > https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode404 > ...
4 years, 1 month ago (2016-11-16 01:09:52 UTC) #7
dcheng
In any case, IPC LGTM, the DCHECK seems weird to me, but it's not blocking ...
4 years, 1 month ago (2016-11-16 01:13:19 UTC) #8
watk
lgtm
4 years, 1 month ago (2016-11-16 01:13:56 UTC) #9
DaleCurtis
Thanks for review. https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2507463004/diff/1/media/gpu/android_video_decode_accelerator.cc#newcode404 media/gpu/android_video_decode_accelerator.cc:404: DCHECK(g_avda_manager.Get().AllocateSurface(config_.surface_id, this)); On 2016/11/16 at 01:06:33, ...
4 years, 1 month ago (2016-11-16 01:16:15 UTC) #11
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/2507463004/1
4 years, 1 month ago (2016-11-16 01:16:45 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/164897)
4 years, 1 month ago (2016-11-16 01:31:04 UTC) #14
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/2507463004/1
4 years, 1 month ago (2016-11-16 01:33:34 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/164493)
4 years, 1 month ago (2016-11-16 01:47:30 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/2507463004/1
4 years, 1 month ago (2016-11-16 03:05:11 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/338260)
4 years, 1 month ago (2016-11-16 04:27:04 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/2507463004/1
4 years, 1 month ago (2016-11-16 06:29:07 UTC) #24
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-16 08:13:40 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 08:18:38 UTC) #27
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5b3c4d675143972351fe4e2d5c3ac903455f0a64
Cr-Commit-Position: refs/heads/master@{#432423}

Powered by Google App Engine
This is Rietveld 408576698