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

Issue 1685713003: Remove V4L2CaptureDelegate{Single,Multi}Plane, VCD::Client::OnIncomingCapturedYuvData() (Closed)

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

Description

Remove V4L2CaptureDelegate{Single,Multi}Plane, VCD::Client::OnIncomingCapturedYuvData() this CL: - removes both V4L2CaptureDelegateMultiPlane and V4L2CaptureDelegateSinglePlane, leaving only the single plane version, which is intelligently blended into their parent class V4L2CaptureDelegate. - Since the former class is the only user of VideoCaptureDevice::Client::OnIncomingCapturedYuvData(), that method is removed (yay!). - Also cleaned up a bit here and there. - VideoCaptureDeviceClientTest also updated and improved. BUG=585519 Committed: https://crrev.com/a9349677919cf6ce59045869782109ce3ac0dd19 Cr-Commit-Position: refs/heads/master@{#376200}

Patch Set 1 #

Patch Set 2 : more consolidation #

Patch Set 3 : Made V4L2 a SupportsWeakPtr ISO RefCounted #

Patch Set 4 : rebase -- hubbe@ added more VideoPixelFormats #

Total comments: 15

Patch Set 5 : perkj@ comments and reverted change to WeakPtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -693 lines) Patch
M content/browser/media/media_internals_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_device_client.h View 1 chunk +0 lines, -9 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_client.cc View 1 2 3 4 2 chunks +4 lines, -54 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_client_unittest.cc View 1 2 3 6 chunks +33 lines, -30 lines 0 comments Download
M media/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M media/capture/video/fake_video_capture_device.h View 3 chunks +0 lines, -10 lines 0 comments Download
M media/capture/video/fake_video_capture_device.cc View 3 chunks +6 lines, -25 lines 0 comments Download
M media/capture/video/fake_video_capture_device_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M media/capture/video/fake_video_capture_device_factory.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M media/capture/video/fake_video_capture_device_unittest.cc View 4 chunks +4 lines, -21 lines 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate.h View 1 2 3 4 4 chunks +11 lines, -90 lines 0 comments Download
M media/capture/video/linux/v4l2_capture_delegate.cc View 1 2 3 4 15 chunks +112 lines, -102 lines 0 comments Download
D media/capture/video/linux/v4l2_capture_delegate_multi_plane.h View 1 chunk +0 lines, -64 lines 0 comments Download
D media/capture/video/linux/v4l2_capture_delegate_multi_plane.cc View 1 chunk +0 lines, -100 lines 0 comments Download
D media/capture/video/linux/v4l2_capture_delegate_single_plane.h View 1 chunk +0 lines, -58 lines 0 comments Download
D media/capture/video/linux/v4l2_capture_delegate_single_plane.cc View 1 chunk +0 lines, -61 lines 0 comments Download
M media/capture/video/linux/video_capture_device_factory_linux.cc View 1 4 chunks +16 lines, -34 lines 0 comments Download
M media/capture/video/linux/video_capture_device_linux.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M media/capture/video/video_capture_device.h View 1 2 chunks +0 lines, -14 lines 0 comments Download
M media/capture/video/video_capture_device.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
mcasas
posciak@, perkj@ PTAL
4 years, 10 months ago (2016-02-11 15:36:26 UTC) #7
perkj_chrome
Nice to get rid of code. I think you should keep the delegate as ref ...
4 years, 10 months ago (2016-02-12 11:01:40 UTC) #8
mcasas
guys PTAL https://codereview.chromium.org/1685713003/diff/120001/content/browser/renderer_host/media/video_capture_device_client.cc File content/browser/renderer_host/media/video_capture_device_client.cc (right): https://codereview.chromium.org/1685713003/diff/120001/content/browser/renderer_host/media/video_capture_device_client.cc#newcode92 content/browser/renderer_host/media/video_capture_device_client.cc:92: OnLog(media::VideoPixelFormatToString(frame_format.pixel_format)); On 2016/02/12 11:01:40, perkj_chrome wrote: > ...
4 years, 10 months ago (2016-02-12 21:32:43 UTC) #10
perkj_chrome
lgtm
4 years, 10 months ago (2016-02-14 15:24:03 UTC) #11
mcasas
posciak@ ping
4 years, 10 months ago (2016-02-16 17:56:04 UTC) #12
mcasas
dalecurtis@ for BUILD.gn and media.gyp microremovals
4 years, 10 months ago (2016-02-17 17:58:06 UTC) #14
DaleCurtis
media.gyp / build.gn lgtm
4 years, 10 months ago (2016-02-17 18:10:21 UTC) #15
mcasas
posciak@ ping 2
4 years, 10 months ago (2016-02-17 18:11:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1685713003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1685713003/140001
4 years, 10 months ago (2016-02-18 16:55:46 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 10 months ago (2016-02-18 18:10:08 UTC) #20
commit-bot: I haz the power
4 years, 10 months ago (2016-02-18 18:11:26 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a9349677919cf6ce59045869782109ce3ac0dd19
Cr-Commit-Position: refs/heads/master@{#376200}

Powered by Google App Engine
This is Rietveld 408576698