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

Issue 1320893004: Mac Overlays: Enable h264 overlays (Closed)

Created:
5 years, 3 months ago by ccameron
Modified:
5 years, 3 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, 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

Mac Overlays: Enable h264 overlays Punch a hole from GpuVideoDecodeAccelerator to VTVideoDecodeAccelerator via a callback to BindImage, following the model found in VaapiVideoDecodeAccelerator. If successful, set allow_overlay on the frame's resource. BUG=527650 Committed: https://crrev.com/7ed442bbaf3a5038ce6b9d712200557a0854f888 Cr-Commit-Position: refs/heads/master@{#347546}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Clean up #

Total comments: 14

Patch Set 3 : Incorporate review feedback #

Patch Set 4 : Add comment #

Total comments: 2

Patch Set 5 : ScopedPtrMap, service/client names #

Total comments: 1

Patch Set 6 : Include fix for compositor #

Total comments: 4

Patch Set 7 : Fix compile #

Patch Set 8 : Incorporate review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -23 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -6 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/common/gpu/media/vt_video_decode_accelerator.h View 1 2 3 4 6 chunks +28 lines, -6 lines 0 comments Download
M content/common/gpu/media/vt_video_decode_accelerator.cc View 1 2 3 4 9 chunks +51 lines, -10 lines 0 comments Download

Messages

Total messages: 35 (10 generated)
ccameron
Did I miss something here, or was it actually that simple? https://codereview.chromium.org/1320893004/diff/1/ui/gl/gl_image_io_surface.mm File ui/gl/gl_image_io_surface.mm (right): ...
5 years, 3 months ago (2015-09-03 03:53:07 UTC) #2
reveman
https://codereview.chromium.org/1320893004/diff/1/ui/gl/gl_image_io_surface.mm File ui/gl/gl_image_io_surface.mm (right): https://codereview.chromium.org/1320893004/diff/1/ui/gl/gl_image_io_surface.mm#newcode150 ui/gl/gl_image_io_surface.mm:150: DCHECK(thread_checker_.CalledOnValidThread()); On 2015/09/03 at 03:53:07, ccameron wrote: > So, ...
5 years, 3 months ago (2015-09-03 05:43:57 UTC) #3
sandersd (OOO until July 31)
An alternative to the BindImage callback is to modify the TextureRef yourself, similar to ~line ...
5 years, 3 months ago (2015-09-03 18:19:48 UTC) #4
reveman
https://codereview.chromium.org/1320893004/diff/1/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/1320893004/diff/1/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode1025 content/common/gpu/media/vt_video_decode_accelerator.cc:1025: gfx::GenericSharedMemoryId(), frame.coded_size, GL_BGRA_EXT)); Instead of removing the DCHECK, maybe ...
5 years, 3 months ago (2015-09-03 19:20:37 UTC) #5
ccameron
Thanks! Updated -- ptal. I merged texture_ids_ and picture_bindings_ (and the 2 new maps that ...
5 years, 3 months ago (2015-09-03 19:36:30 UTC) #6
ccameron
Ping -- does this look good to go?
5 years, 3 months ago (2015-09-03 22:25:33 UTC) #7
sandersd (OOO until July 31)
A few small questions, design seems solid to me. https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode832 content/common/gpu/media/vt_video_decode_accelerator.cc:832: ...
5 years, 3 months ago (2015-09-03 23:11:09 UTC) #8
ccameron
Thanks -- updated https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode832 content/common/gpu/media/vt_video_decode_accelerator.cc:832: picture_info_map_[picture.id()] = linked_ptr<PictureInfo>(new PictureInfo( On 2015/09/03 ...
5 years, 3 months ago (2015-09-04 01:31:30 UTC) #9
sandersd (OOO until July 31)
https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode832 content/common/gpu/media/vt_video_decode_accelerator.cc:832: picture_info_map_[picture.id()] = linked_ptr<PictureInfo>(new PictureInfo( On 2015/09/04 01:31:30, ccameron wrote: ...
5 years, 3 months ago (2015-09-04 01:37:49 UTC) #10
ccameron
Updated. I'm pretty sure that map thing doesn't work (this is where I get antsy ...
5 years, 3 months ago (2015-09-04 01:59:04 UTC) #11
sandersd (OOO until July 31)
https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode832 content/common/gpu/media/vt_video_decode_accelerator.cc:832: picture_info_map_[picture.id()] = linked_ptr<PictureInfo>(new PictureInfo( On 2015/09/04 01:59:04, ccameron wrote: ...
5 years, 3 months ago (2015-09-04 02:41:25 UTC) #12
piman
https://codereview.chromium.org/1320893004/diff/60001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/1320893004/diff/60001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode833 content/common/gpu/media/vt_video_decode_accelerator.cc:833: picture.texture_id(), picture.internal_texture_id())); drive-by nit: so, there's a double inversion ...
5 years, 3 months ago (2015-09-04 03:04:57 UTC) #14
ccameron
On 2015/09/04 02:41:25, sandersd wrote: > https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc > File content/common/gpu/media/vt_video_decode_accelerator.cc (right): > > https://codereview.chromium.org/1320893004/diff/20001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode832 > ...
5 years, 3 months ago (2015-09-04 08:53:40 UTC) #15
ccameron
Updated! https://codereview.chromium.org/1320893004/diff/60001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/1320893004/diff/60001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode833 content/common/gpu/media/vt_video_decode_accelerator.cc:833: picture.texture_id(), picture.internal_texture_id())); On 2015/09/04 03:04:57, piman (slow to ...
5 years, 3 months ago (2015-09-04 08:53:50 UTC) #16
piman
On Fri, Sep 4, 2015 at 1:53 AM, <ccameron@chromium.org> wrote: > On 2015/09/04 02:41:25, sandersd ...
5 years, 3 months ago (2015-09-04 17:28:36 UTC) #17
piman
LGTM for the nit, now I'm running away.
5 years, 3 months ago (2015-09-04 17:28:59 UTC) #18
sandersd (OOO until July 31)
lgtm
5 years, 3 months ago (2015-09-04 17:53:43 UTC) #19
DaleCurtis
https://codereview.chromium.org/1320893004/diff/80001/content/common/gpu/media/vt_video_decode_accelerator.cc File content/common/gpu/media/vt_video_decode_accelerator.cc (right): https://codereview.chromium.org/1320893004/diff/80001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode302 content/common/gpu/media/vt_video_decode_accelerator.cc:302: const base::Callback<void(uint32, uint32, scoped_refptr<gfx::GLImage>)>& Drive-by: This is a bit ...
5 years, 3 months ago (2015-09-04 18:56:24 UTC) #21
ccameron
On 2015/09/04 18:56:24, DaleCurtis wrote: > https://codereview.chromium.org/1320893004/diff/80001/content/common/gpu/media/vt_video_decode_accelerator.cc > File content/common/gpu/media/vt_video_decode_accelerator.cc (right): > > https://codereview.chromium.org/1320893004/diff/80001/content/common/gpu/media/vt_video_decode_accelerator.cc#newcode302 > ...
5 years, 3 months ago (2015-09-04 23:23:35 UTC) #23
Daniele Castagna
https://codereview.chromium.org/1320893004/diff/100001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/1320893004/diff/100001/content/browser/compositor/gpu_process_transport_factory.cc#newcode317 content/browser/compositor/gpu_process_transport_factory.cc:317: if (!surface) { Are you sure this check is ...
5 years, 3 months ago (2015-09-04 23:33:43 UTC) #25
Daniele Castagna
content/browser/compositor LGTM
5 years, 3 months ago (2015-09-04 23:48:05 UTC) #26
ccameron
Thanks -- updated! https://codereview.chromium.org/1320893004/diff/100001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/1320893004/diff/100001/content/browser/compositor/gpu_process_transport_factory.cc#newcode317 content/browser/compositor/gpu_process_transport_factory.cc:317: if (!surface) { On 2015/09/04 23:33:43, ...
5 years, 3 months ago (2015-09-04 23:49:13 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320893004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320893004/140001
5 years, 3 months ago (2015-09-04 23:52:16 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-05 00:51:48 UTC) #34
commit-bot: I haz the power
5 years, 3 months ago (2015-09-05 00:52:26 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7ed442bbaf3a5038ce6b9d712200557a0854f888
Cr-Commit-Position: refs/heads/master@{#347546}

Powered by Google App Engine
This is Rietveld 408576698