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

Issue 22645005: media::VideoFrame::WrapExternalSharedMemory (Closed)

Created:
7 years, 4 months ago by sheu
Modified:
7 years, 4 months ago
CC:
chromium-reviews, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@git-svn
Visibility:
Public.

Description

media::VideoFrame::WrapExternalSharedMemory Add WrapExternalSharedMemory() for wrapping base::SharedMemory-backed buffers in a media::VideoFrame Also: add support for I420 in YUV handling paths for media::VideoFrame. BUG=None TEST=local build, run, unittests on desktop Linux Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216641

Patch Set 1 #

Total comments: 2

Patch Set 2 : ea0abc1a DCHECK update. #

Total comments: 8

Patch Set 3 : 87b7a18a Rebase, added TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -45 lines) Patch
M cc/resources/video_resource_updater_unittest.cc View 1 chunk +11 lines, -12 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_buffer_pool.cc View 1 chunk +7 lines, -13 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/content_decryptor_delegate.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M media/base/video_frame.h View 1 2 2 chunks +17 lines, -1 line 0 comments Download
M media/base/video_frame.cc View 7 chunks +56 lines, -13 lines 0 comments Download
M media/base/video_util.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
sheu
PTAL. wjia@: content/browser/renderer_host/media/* fischman@: media/base/*
7 years, 4 months ago (2013-08-08 05:43:09 UTC) #1
miu
Please make sure TabCaptureApiTest.EndToEnd (in browser_tests) passes. I'm wary about adding the I420 support in ...
7 years, 4 months ago (2013-08-08 18:03:31 UTC) #2
sheu
Ran browser_tests, and found one DCHECK to update. yuli@: PTAL https://chromiumcodereview.appspot.com/22645005/diff/1/content/browser/renderer_host/media/web_contents_video_capture_device.cc File content/browser/renderer_host/media/web_contents_video_capture_device.cc (right): https://chromiumcodereview.appspot.com/22645005/diff/1/content/browser/renderer_host/media/web_contents_video_capture_device.cc#newcode651 ...
7 years, 4 months ago (2013-08-08 18:34:09 UTC) #3
sheu
miu@, rather
7 years, 4 months ago (2013-08-08 18:34:29 UTC) #4
danakj
On 2013/08/08 18:34:09, sheu wrote: > Ran browser_tests, and found one DCHECK to update. > ...
7 years, 4 months ago (2013-08-08 18:34:52 UTC) #5
sheu
danakj: there's no addition to the display formats. It's for transport only at the moment.
7 years, 4 months ago (2013-08-08 18:38:08 UTC) #6
miu
lgtm Good stuff! I assume this will help us reduce memcpy's as data is passed ...
7 years, 4 months ago (2013-08-08 19:33:56 UTC) #7
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.cc#newcode121 media/base/video_frame.cc:121: scoped_refptr<VideoFrame> VideoFrame::WrapExternalSharedMemory( What is the benefit of this new ...
7 years, 4 months ago (2013-08-08 19:34:28 UTC) #8
sheu
https://chromiumcodereview.appspot.com/22645005/diff/6001/content/browser/renderer_host/media/web_contents_video_capture_device.cc File content/browser/renderer_host/media/web_contents_video_capture_device.cc (right): https://chromiumcodereview.appspot.com/22645005/diff/6001/content/browser/renderer_host/media/web_contents_video_capture_device.cc#newcode651 content/browser/renderer_host/media/web_contents_video_capture_device.cc:651: if (output->format() != media::VideoFrame::I420) { On 2013/08/08 19:33:56, Yuri ...
7 years, 4 months ago (2013-08-08 19:43:08 UTC) #9
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.cc#newcode121 media/base/video_frame.cc:121: scoped_refptr<VideoFrame> VideoFrame::WrapExternalSharedMemory( On 2013/08/08 19:43:08, sheu wrote: > On ...
7 years, 4 months ago (2013-08-08 19:49:38 UTC) #10
sheu
https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.cc File media/base/video_frame.cc (right): https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.cc#newcode121 media/base/video_frame.cc:121: scoped_refptr<VideoFrame> VideoFrame::WrapExternalSharedMemory( On 2013/08/08 19:49:38, Ami Fischman wrote: > ...
7 years, 4 months ago (2013-08-08 19:55:38 UTC) #11
Ami GONE FROM CHROMIUM
lgtm https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.h File media/base/video_frame.h (right): https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.h#newcode157 media/base/video_frame.h:157: // is destroyed |no_longer_needed_cb.Run()| will be called. TODO+crbug ...
7 years, 4 months ago (2013-08-08 20:05:28 UTC) #12
sheu
OWNERS checkoffs from: yzshen@ danakj@ PTAL. https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.h File media/base/video_frame.h (right): https://chromiumcodereview.appspot.com/22645005/diff/6001/media/base/video_frame.h#newcode157 media/base/video_frame.h:157: // is destroyed ...
7 years, 4 months ago (2013-08-08 20:15:38 UTC) #13
danakj
cc lgtm
7 years, 4 months ago (2013-08-08 22:05:24 UTC) #14
yzshen1
LGTM for .*pepper.*
7 years, 4 months ago (2013-08-08 22:23:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/22645005/21001
7 years, 4 months ago (2013-08-08 22:29:56 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=143887
7 years, 4 months ago (2013-08-09 00:13:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/22645005/21001
7 years, 4 months ago (2013-08-09 00:19:30 UTC) #18
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 08:04:39 UTC) #19
Message was sent while issue was closed.
Change committed as 216641

Powered by Google App Engine
This is Rietveld 408576698