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

Issue 1639963002: AndroidVideoDecodeAccelerator can now render to a SurfaceView (Closed)

Created:
4 years, 11 months ago by watk
Modified:
4 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AndroidVideoDecodeAccelerator can now render to a SurfaceView Previously AVDA would always configure MediaCodec with a SurfaceTexture. Now, to support efficient fullscreen video, it can render to a SurfaceView too. BUG=533630 Committed: https://crrev.com/cd5d9e95ca27d3a71ef31c21ba82b2f55fa4f49e Cr-Commit-Position: refs/heads/master@{#373365}

Patch Set 1 #

Total comments: 3

Patch Set 2 : s/kNullSurfaceId/kNoSurfaceId per sandersd #

Patch Set 3 : const ref scoped_refptrs #

Patch Set 4 : Frank's suggestion #

Total comments: 4

Patch Set 5 : Rebase only #

Patch Set 6 : Comments & fix chromium-style issue #

Total comments: 1

Patch Set 7 : Get the unittest compiling and passing #

Total comments: 5

Patch Set 8 : sandersd's comments #

Total comments: 6

Patch Set 9 : dcheng's comments #

Patch Set 10 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -100 lines) Patch
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/android_copying_backing_strategy.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M content/common/gpu/media/android_copying_backing_strategy.cc View 1 2 3 4 5 6 7 8 3 chunks +40 lines, -24 lines 0 comments Download
M content/common/gpu/media/android_deferred_rendering_backing_strategy.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -3 lines 0 comments Download
M content/common/gpu/media/android_deferred_rendering_backing_strategy.cc View 1 2 3 4 5 6 7 7 chunks +55 lines, -31 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.h View 1 2 3 4 5 6 7 4 chunks +16 lines, -8 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 8 chunks +22 lines, -14 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -6 lines 0 comments Download
M content/common/gpu/media/avda_codec_image.h View 4 chunks +9 lines, -5 lines 0 comments Download
M content/common/gpu/media/avda_codec_image.cc View 1 2 3 4 5 6 7 7 chunks +25 lines, -6 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
watk
4 years, 11 months ago (2016-01-26 21:24:04 UTC) #3
DaleCurtis
Drive by test request! Can we start a content_unittest which spawns up the gpu video ...
4 years, 11 months ago (2016-01-26 21:37:14 UTC) #5
DaleCurtis
(nice work!)
4 years, 11 months ago (2016-01-26 21:37:25 UTC) #6
liberato (no reviews please)
i'm happy that the required changes here are pretty small. i've made suggestions on how ...
4 years, 11 months ago (2016-01-26 21:48:45 UTC) #7
watk
liberato: I implemented your suggested refactor. There's a bit of awkwardness related to the OnFrameAvailableListener. ...
4 years, 11 months ago (2016-01-27 00:08:25 UTC) #10
liberato (no reviews please)
nice. -fl https://codereview.chromium.org/1639963002/diff/80001/content/common/gpu/media/android_copying_backing_strategy.cc File content/common/gpu/media/android_copying_backing_strategy.cc (right): https://codereview.chromium.org/1639963002/diff/80001/content/common/gpu/media/android_copying_backing_strategy.cc#newcode29 content/common/gpu/media/android_copying_backing_strategy.cc:29: gfx::ScopedJavaSurface AndroidCopyingBackingStrategy::Initialize( that's a good idea. https://codereview.chromium.org/1639963002/diff/80001/content/common/gpu/media/android_video_decode_accelerator.cc ...
4 years, 11 months ago (2016-01-27 16:15:33 UTC) #11
watk
On 2016/01/27 16:15:33, liberato wrote: > nice. > > -fl > > https://codereview.chromium.org/1639963002/diff/80001/content/common/gpu/media/android_copying_backing_strategy.cc > File ...
4 years, 11 months ago (2016-01-27 20:45:29 UTC) #12
liberato (no reviews please)
On 2016/01/27 20:45:29, watk wrote: > On 2016/01/27 16:15:33, liberato wrote: > > nice. > ...
4 years, 11 months ago (2016-01-27 20:47:51 UTC) #13
DaleCurtis
https://codereview.chromium.org/1639963002/diff/80001/content/common/gpu/media/android_copying_backing_strategy.cc File content/common/gpu/media/android_copying_backing_strategy.cc (right): https://codereview.chromium.org/1639963002/diff/80001/content/common/gpu/media/android_copying_backing_strategy.cc#newcode32 content/common/gpu/media/android_copying_backing_strategy.cc:32: DCHECK(surface_view_id == DCHECK_EQ
4 years, 11 months ago (2016-01-27 21:48:13 UTC) #14
watk
Testing was discussed offline. The plan is to add a content_browsertest once the renderer side ...
4 years, 10 months ago (2016-01-29 02:42:19 UTC) #16
watk
This is ready to submit, so I'll need an owner lgtm from sandersd and another ...
4 years, 10 months ago (2016-01-29 20:56:59 UTC) #17
liberato (no reviews please)
lgtm % nit https://codereview.chromium.org/1639963002/diff/160001/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc File content/common/gpu/media/android_deferred_rendering_backing_strategy.cc (right): https://codereview.chromium.org/1639963002/diff/160001/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc#newcode47 content/common/gpu/media/android_deferred_rendering_backing_strategy.cc:47: GLuint service_id = 0; can this ...
4 years, 10 months ago (2016-01-29 23:28:46 UTC) #18
sandersd (OOO until July 31)
LGTM % nits. https://codereview.chromium.org/1639963002/diff/160001/content/common/gpu/media/android_copying_backing_strategy.h File content/common/gpu/media/android_copying_backing_strategy.h (right): https://codereview.chromium.org/1639963002/diff/160001/content/common/gpu/media/android_copying_backing_strategy.h#newcode46 content/common/gpu/media/android_copying_backing_strategy.h:46: bool PicturesAreOverlayable() override; Nit: ArePicturesOverlayable() https://codereview.chromium.org/1639963002/diff/160001/content/common/gpu/media/android_video_decode_accelerator.cc ...
4 years, 10 months ago (2016-02-01 19:58:26 UTC) #19
watk
dcheng@chromium.org: Please review changes in gpu_messages.h https://codereview.chromium.org/1639963002/diff/160001/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc File content/common/gpu/media/android_deferred_rendering_backing_strategy.cc (right): https://codereview.chromium.org/1639963002/diff/160001/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc#newcode47 content/common/gpu/media/android_deferred_rendering_backing_strategy.cc:47: GLuint service_id = ...
4 years, 10 months ago (2016-02-02 02:19:02 UTC) #21
dcheng
https://codereview.chromium.org/1639963002/diff/180001/content/common/gpu/media/android_copying_backing_strategy.cc File content/common/gpu/media/android_copying_backing_strategy.cc (right): https://codereview.chromium.org/1639963002/diff/180001/content/common/gpu/media/android_copying_backing_strategy.cc#newcode35 content/common/gpu/media/android_copying_backing_strategy.cc:35: DCHECK_EQ(surface_view_id, Ultimately, this is invoked by a message sent ...
4 years, 10 months ago (2016-02-02 07:37:26 UTC) #22
watk
Thanks, done https://codereview.chromium.org/1639963002/diff/180001/content/common/gpu/media/android_copying_backing_strategy.cc File content/common/gpu/media/android_copying_backing_strategy.cc (right): https://codereview.chromium.org/1639963002/diff/180001/content/common/gpu/media/android_copying_backing_strategy.cc#newcode35 content/common/gpu/media/android_copying_backing_strategy.cc:35: DCHECK_EQ(surface_view_id, On 2016/02/02 07:37:26, dcheng wrote: > ...
4 years, 10 months ago (2016-02-02 19:56:45 UTC) #23
dcheng
lgtm
4 years, 10 months ago (2016-02-02 21:20:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639963002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639963002/220001
4 years, 10 months ago (2016-02-02 21:25:48 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/160933)
4 years, 10 months ago (2016-02-02 23:44:50 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639963002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639963002/220001
4 years, 10 months ago (2016-02-03 21:05:29 UTC) #31
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 10 months ago (2016-02-03 22:37:12 UTC) #33
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 22:38:05 UTC) #35
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/cd5d9e95ca27d3a71ef31c21ba82b2f55fa4f49e
Cr-Commit-Position: refs/heads/master@{#373365}

Powered by Google App Engine
This is Rietveld 408576698