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

Issue 858653002: vaapi plumbing to allow hardware video overlays (Closed)

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

Description

vaapi plumbing to allow hardware video overlays Uses ozone GLImage instead of GLImageLinuxDMABuffer and binds it in the TextureManager, this lets it be scheduled as an overlay BUG=370522 TEST=loaded on device (with 812913003, 806413004, 855403002, 810343004), play h264 video, verify that overlays are used and no artifacts are produced) Committed: https://crrev.com/79812c1a67c5cbd7b60ecc117c3d1d6492c8db38 Cr-Commit-Position: refs/heads/master@{#314376}

Patch Set 1 #

Patch Set 2 : make buildable before cc plumbing is in #

Total comments: 17

Patch Set 3 : remove gles dependencies #

Patch Set 4 : cc plumbing going in first, so put the link back in #

Total comments: 11

Patch Set 5 : change bool to virtual fn #

Total comments: 2

Patch Set 6 : add some comments #

Patch Set 7 : rebase #

Patch Set 8 : bad merge #

Patch Set 9 : fix unittests build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -30 lines) Patch
M content/common/gpu/media/gpu_video_decode_accelerator.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 3 4 5 6 3 chunks +18 lines, -10 lines 0 comments Download
M content/common/gpu/media/vaapi_drm_picture.h View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M content/common/gpu/media/vaapi_drm_picture.cc View 1 2 3 4 3 chunks +15 lines, -9 lines 0 comments Download
M content/common/gpu/media/vaapi_picture.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_picture.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_tfp_picture.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_tfp_picture.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.h View 1 2 3 4 5 6 3 chunks +11 lines, -1 line 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 3 4 5 6 7 5 chunks +14 lines, -3 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -2 lines 0 comments Download
M media/video/picture.h View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M media/video/picture.cc View 1 2 3 4 5 6 2 chunks +10 lines, -1 line 0 comments Download
M ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc View 2 chunks +11 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (6 generated)
achaulk
5 years, 11 months ago (2015-01-19 18:44:03 UTC) #2
spang
5 years, 11 months ago (2015-01-19 18:46:19 UTC) #4
alexst (slow to review)
https://codereview.chromium.org/858653002/diff/20001/content/common/gpu/media/vaapi_video_decode_accelerator.h File content/common/gpu/media/vaapi_video_decode_accelerator.h (right): https://codereview.chromium.org/858653002/diff/20001/content/common/gpu/media/vaapi_video_decode_accelerator.h#newcode274 content/common/gpu/media/vaapi_video_decode_accelerator.h:274: gpu::gles2::TextureManager* texture_manager_; Is it safe to cache this here ...
5 years, 11 months ago (2015-01-19 19:02:17 UTC) #5
achaulk
https://codereview.chromium.org/858653002/diff/20001/content/common/gpu/media/vaapi_video_decode_accelerator.h File content/common/gpu/media/vaapi_video_decode_accelerator.h (right): https://codereview.chromium.org/858653002/diff/20001/content/common/gpu/media/vaapi_video_decode_accelerator.h#newcode274 content/common/gpu/media/vaapi_video_decode_accelerator.h:274: gpu::gles2::TextureManager* texture_manager_; On 2015/01/19 19:02:17, alexst wrote: > Is ...
5 years, 11 months ago (2015-01-19 19:05:49 UTC) #6
alexst (slow to review)
lgtm and +posciak for chromeos video TL
5 years, 11 months ago (2015-01-19 20:03:25 UTC) #8
DaleCurtis
-vrk who no longer works on the project.
5 years, 11 months ago (2015-01-20 18:33:24 UTC) #10
Pawel Osciak
Please provide TEST= line and explain how/on what this was tested. Also, would it be ...
5 years, 11 months ago (2015-01-21 13:07:08 UTC) #12
achaulk
Everything builds fine - I added a new constructor instead of changing the existing one. ...
5 years, 11 months ago (2015-01-21 17:10:03 UTC) #13
achaulk
Oh, yeah the tests are broken in one particular configuration. Hmm
5 years, 11 months ago (2015-01-21 19:14:57 UTC) #14
piman
LGTM overall... It'd be nice if we didn't have to expose the gles2 classes all ...
5 years, 11 months ago (2015-01-21 23:58:22 UTC) #15
achaulk
Is is ugly, yes. I've uploaded another approach which doesn't import gles into vaapi, it ...
5 years, 11 months ago (2015-01-22 18:13:47 UTC) #16
piman
OK, I like this. LGTM.
5 years, 11 months ago (2015-01-22 19:18:32 UTC) #17
Pawel Osciak
https://chromiumcodereview.appspot.com/858653002/diff/60001/content/common/gpu/media/vaapi_picture.h File content/common/gpu/media/vaapi_picture.h (right): https://chromiumcodereview.appspot.com/858653002/diff/60001/content/common/gpu/media/vaapi_picture.h#newcode67 content/common/gpu/media/vaapi_picture.h:67: bool allow_overlay) Could we please get rid of this ...
5 years, 11 months ago (2015-01-24 00:58:55 UTC) #18
Pawel Osciak
How could we have overlays working in video_decode_accelerator_unittest?
5 years, 11 months ago (2015-01-24 01:32:38 UTC) #19
achaulk
https://codereview.chromium.org/858653002/diff/60001/content/common/gpu/media/vaapi_picture.h File content/common/gpu/media/vaapi_picture.h (right): https://codereview.chromium.org/858653002/diff/60001/content/common/gpu/media/vaapi_picture.h#newcode67 content/common/gpu/media/vaapi_picture.h:67: bool allow_overlay) On 2015/01/24 00:58:54, Pawel Osciak wrote: > ...
5 years, 11 months ago (2015-01-27 18:36:48 UTC) #20
DaleCurtis
Media/ lgtm if posciak is happy
5 years, 10 months ago (2015-01-28 23:38:41 UTC) #21
Pawel Osciak
I would kindly request *before* this goes in to: - please add an about:flags switch ...
5 years, 10 months ago (2015-01-28 23:52:02 UTC) #22
achaulk
On 2015/01/28 23:52:02, Pawel Osciak wrote: > I would kindly request *before* this goes in ...
5 years, 10 months ago (2015-01-28 23:54:14 UTC) #23
Pawel Osciak
On 2015/01/28 23:54:14, achaulk wrote: > On 2015/01/28 23:52:02, Pawel Osciak wrote: > > I ...
5 years, 10 months ago (2015-01-28 23:55:00 UTC) #24
achaulk
--enable-hardware-overlays is the flag for now to turn it on, it's defaulted to off
5 years, 10 months ago (2015-01-28 23:57:35 UTC) #25
Pawel Osciak
On 2015/01/28 23:57:35, achaulk wrote: > --enable-hardware-overlays is the flag for now to turn it ...
5 years, 10 months ago (2015-01-28 23:58:30 UTC) #26
Pawel Osciak
Per offline discussion this is going in disabled. The next step before enabling is to ...
5 years, 10 months ago (2015-01-29 00:13:35 UTC) #27
piman
On Wed, Jan 28, 2015 at 4:13 PM, <posciak@chromium.org> wrote: > Per offline discussion this ...
5 years, 10 months ago (2015-01-29 00:44:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/858653002/160001
5 years, 10 months ago (2015-02-03 18:54:12 UTC) #30
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 10 months ago (2015-02-03 18:58:41 UTC) #31
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 18:59:25 UTC) #32
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/79812c1a67c5cbd7b60ecc117c3d1d6492c8db38
Cr-Commit-Position: refs/heads/master@{#314376}

Powered by Google App Engine
This is Rietveld 408576698