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

Issue 877353002: media: VideoFrame: add offset for shared memory buffers (Closed)

Created:
5 years, 10 months ago by llandwerlin-old
Modified:
5 years, 10 months ago
Reviewers:
bbudge, DaleCurtis, dcheng, piman
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_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

media: VideoFrame: add offset for shared memory buffers Frames' data could be located at an offset within a shared memory buffer. This adds metadata into media::VideoFrame to support this use case. BUG=455409 TEST=none Committed: https://crrev.com/c12f2b27581d575b3bbd9b668a4c521703eafda3 Cr-Commit-Position: refs/heads/master@{#315428}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add gpu-process ipc modification #

Total comments: 11

Patch Set 3 : Update after dcheng's review #

Total comments: 2

Patch Set 4 : Update after dcheng's review #

Total comments: 2

Patch Set 5 : Simplify shm pointer computation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -4 lines) Patch
M content/browser/media/capture/content_video_capture_device_core.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/gpu_video_encode_accelerator_host.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/media/gpu_video_encode_accelerator.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/media/gpu_video_encode_accelerator.cc View 1 2 3 4 4 chunks +20 lines, -2 lines 0 comments Download
M content/renderer/media/rtc_video_encoder.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/base/video_frame.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M media/base/video_frame.cc View 1 2 3 4 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (3 generated)
llandwerlin-old
piman@ dalecurtis@: Please review these changes. To give a bit more background, we would like ...
5 years, 10 months ago (2015-01-28 13:07:29 UTC) #2
piman
lgtm
5 years, 10 months ago (2015-01-28 18:37:08 UTC) #3
bbudge
Some comments, otherwise LGTM https://codereview.chromium.org/877353002/diff/1/content/browser/media/capture/content_video_capture_device_core.cc File content/browser/media/capture/content_video_capture_device_core.cc (right): https://codereview.chromium.org/877353002/diff/1/content/browser/media/capture/content_video_capture_device_core.cc#newcode137 content/browser/media/capture/content_video_capture_device_core.cc:137: 0, Could you label these ...
5 years, 10 months ago (2015-01-28 18:47:07 UTC) #4
DaleCurtis
I don't follow why this should be part of the VideoFrame. Isn't this handled by ...
5 years, 10 months ago (2015-01-28 23:31:48 UTC) #5
bbudge
On 2015/01/28 23:31:48, DaleCurtis wrote: > I don't follow why this should be part of ...
5 years, 10 months ago (2015-01-28 23:59:26 UTC) #6
llandwerlin-old
On 2015/01/28 23:59:26, bbudge wrote: > On 2015/01/28 23:31:48, DaleCurtis wrote: > > I don't ...
5 years, 10 months ago (2015-01-29 11:08:32 UTC) #7
DaleCurtis
Yes, I'll need to see the other CL.
5 years, 10 months ago (2015-01-29 18:54:57 UTC) #8
DaleCurtis
(Note, if it's a large CL, you can just upload it, no need to merge ...
5 years, 10 months ago (2015-01-29 18:55:51 UTC) #9
llandwerlin-old
dalecurtis@, I added the modification to the ipc message with the gpu process, making use ...
5 years, 10 months ago (2015-01-30 08:03:41 UTC) #10
llandwerlin-old
Adding dcheng@ to review the gpu ipc message change. Thanks!
5 years, 10 months ago (2015-01-30 08:04:29 UTC) #12
DaleCurtis
https://codereview.chromium.org/877353002/diff/20001/content/common/gpu/client/gpu_video_encode_accelerator_host.cc File content/common/gpu/client/gpu_video_encode_accelerator_host.cc (right): https://codereview.chromium.org/877353002/diff/20001/content/common/gpu/client/gpu_video_encode_accelerator_host.cc#newcode187 content/common/gpu/client/gpu_video_encode_accelerator_host.cc:187: encoder_route_id_, next_frame_id_, handle, frame->shared_memory_offset(), Who is setting this value? ...
5 years, 10 months ago (2015-01-30 18:44:59 UTC) #13
llandwerlin-old
https://codereview.chromium.org/877353002/diff/20001/content/common/gpu/client/gpu_video_encode_accelerator_host.cc File content/common/gpu/client/gpu_video_encode_accelerator_host.cc (right): https://codereview.chromium.org/877353002/diff/20001/content/common/gpu/client/gpu_video_encode_accelerator_host.cc#newcode187 content/common/gpu/client/gpu_video_encode_accelerator_host.cc:187: encoder_route_id_, next_frame_id_, handle, frame->shared_memory_offset(), On 2015/01/30 18:44:59, DaleCurtis wrote: ...
5 years, 10 months ago (2015-01-31 22:42:53 UTC) #14
DaleCurtis
I defer to dcheng@ on whether this is really problem, but it does seem risky ...
5 years, 10 months ago (2015-02-02 19:24:18 UTC) #15
dcheng
https://codereview.chromium.org/877353002/diff/20001/content/common/gpu/media/gpu_video_encode_accelerator.cc File content/common/gpu/media/gpu_video_encode_accelerator.cc (right): https://codereview.chromium.org/877353002/diff/20001/content/common/gpu/media/gpu_video_encode_accelerator.cc#newcode266 content/common/gpu/media/gpu_video_encode_accelerator.cc:266: size_t map_size = buffer_size + (buffer_offset - map_offset); This ...
5 years, 10 months ago (2015-02-02 20:56:23 UTC) #16
llandwerlin-old
Sorry for the delay, PTAL. https://codereview.chromium.org/877353002/diff/20001/content/common/gpu/media/gpu_video_encode_accelerator.cc File content/common/gpu/media/gpu_video_encode_accelerator.cc (right): https://codereview.chromium.org/877353002/diff/20001/content/common/gpu/media/gpu_video_encode_accelerator.cc#newcode266 content/common/gpu/media/gpu_video_encode_accelerator.cc:266: size_t map_size = buffer_size ...
5 years, 10 months ago (2015-02-03 16:35:06 UTC) #17
dcheng
https://codereview.chromium.org/877353002/diff/40001/content/common/gpu/media/gpu_video_encode_accelerator.cc File content/common/gpu/media/gpu_video_encode_accelerator.cc (right): https://codereview.chromium.org/877353002/diff/40001/content/common/gpu/media/gpu_video_encode_accelerator.cc#newcode275 content/common/gpu/media/gpu_video_encode_accelerator.cc:275: static_cast<off_t>(map_offset.ValueOrDie())); Let's avoid casting if we don't have to. ...
5 years, 10 months ago (2015-02-06 21:39:47 UTC) #18
llandwerlin-old
PTAL, thanks for the snippet of code. https://codereview.chromium.org/877353002/diff/40001/content/common/gpu/media/gpu_video_encode_accelerator.cc File content/common/gpu/media/gpu_video_encode_accelerator.cc (right): https://codereview.chromium.org/877353002/diff/40001/content/common/gpu/media/gpu_video_encode_accelerator.cc#newcode275 content/common/gpu/media/gpu_video_encode_accelerator.cc:275: static_cast<off_t>(map_offset.ValueOrDie())); On ...
5 years, 10 months ago (2015-02-09 14:48:47 UTC) #19
dcheng
https://codereview.chromium.org/877353002/diff/60001/content/common/gpu/media/gpu_video_encode_accelerator.cc File content/common/gpu/media/gpu_video_encode_accelerator.cc (right): https://codereview.chromium.org/877353002/diff/60001/content/common/gpu/media/gpu_video_encode_accelerator.cc#newcode287 content/common/gpu/media/gpu_video_encode_accelerator.cc:287: (buffer_offset - map_offset.ValueOrDie()); Use aligned_offset here too.
5 years, 10 months ago (2015-02-09 18:57:09 UTC) #20
llandwerlin-old
Thanks, PTAL. https://codereview.chromium.org/877353002/diff/60001/content/common/gpu/media/gpu_video_encode_accelerator.cc File content/common/gpu/media/gpu_video_encode_accelerator.cc (right): https://codereview.chromium.org/877353002/diff/60001/content/common/gpu/media/gpu_video_encode_accelerator.cc#newcode287 content/common/gpu/media/gpu_video_encode_accelerator.cc:287: (buffer_offset - map_offset.ValueOrDie()); On 2015/02/09 18:57:09, dcheng ...
5 years, 10 months ago (2015-02-09 19:34:34 UTC) #21
dcheng
IPC changes lgtm
5 years, 10 months ago (2015-02-09 20:23:19 UTC) #22
DaleCurtis
lgtm
5 years, 10 months ago (2015-02-09 20:30:36 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/877353002/80001
5 years, 10 months ago (2015-02-09 21:07:41 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-09 23:27:41 UTC) #26
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 23:28:39 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c12f2b27581d575b3bbd9b668a4c521703eafda3
Cr-Commit-Position: refs/heads/master@{#315428}

Powered by Google App Engine
This is Rietveld 408576698