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

Issue 2361173002: Move classses VideoCaptureDeviceClient and VideoCaptureBufferPool to media/capture/video (Closed)

Created:
4 years, 3 months ago by chfremer
Modified:
4 years, 2 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move classses VideoCaptureDeviceClient and VideoCaptureBufferPool to media/capture/video This is a pure refactoring. No new functionality. This CL is part of the Mojo Video Capture work. For the bigger picture, see [1] CL1.6.3. * Moved classses VideoCaptureDeviceClient and VideoCaptureBufferPoolImpl plus corresponding interfaces from content/browser/renderer_host/media to media/capture/video. * Break strong dependency of VideoCaptureBufferPoolImpl on content::VideoCaptureBufferTrackerFactory by introducing an interface (media::VideoCaptureBufferTrackerFactory). * Renamed class content::VideoCaptureBufferTrackerFactory to content::RendererHostVideoCaptureBufferTrackerFactory and make it an implementation of the newly created interface media::VideoCaptureBufferTrackerFactory * Move DEPS entry for third_pary/libyuv from content/browser/renderer_host to media/capture/video. This dependency is used in class VideoCaptureDeviceClient BUG=584797 TEST=content_unittest, capture_unittest, video_capture_unittest [1] https://docs.google.com/document/d/1Qw7rw1AJy0QHXjha36jZNiEuxsxWslJ_X-zpOhijvI8/edit#heading=h.wql1o34yg0bx Committed: https://crrev.com/162e19a88fa579c8a770e72801e2c79897a10308 Cr-Commit-Position: refs/heads/master@{#421536}

Patch Set 1 #

Total comments: 12

Patch Set 2 : mcasas' comments #

Total comments: 4

Patch Set 3 : mcasas@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -1437 lines) Patch
M content/browser/BUILD.gn View 1 2 1 chunk +2 lines, -8 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device_unittest.cc View 1 2 7 chunks +15 lines, -12 lines 0 comments Download
M content/browser/renderer_host/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/gpu_memory_buffer_handle.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/gpu_memory_buffer_tracker.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/gpu_memory_buffer_tracker.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/shared_memory_buffer_handle.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/shared_memory_buffer_tracker.h View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/shared_memory_buffer_tracker.cc View 1 chunk +1 line, -1 line 0 comments Download
D content/browser/renderer_host/media/video_capture_buffer_handle.h View 1 chunk +0 lines, -29 lines 0 comments Download
D content/browser/renderer_host/media/video_capture_buffer_pool.h View 1 chunk +0 lines, -185 lines 0 comments Download
D content/browser/renderer_host/media/video_capture_buffer_pool.cc View 1 chunk +0 lines, -259 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc View 1 2 13 chunks +23 lines, -16 lines 0 comments Download
D content/browser/renderer_host/media/video_capture_buffer_tracker.h View 1 chunk +0 lines, -78 lines 0 comments Download
D content/browser/renderer_host/media/video_capture_buffer_tracker_factory.h View 1 chunk +0 lines, -22 lines 0 comments Download
D content/browser/renderer_host/media/video_capture_buffer_tracker_factory.cc View 1 chunk +0 lines, -28 lines 0 comments Download
A + content/browser/renderer_host/media/video_capture_buffer_tracker_factory_impl.h View 1 2 1 chunk +9 lines, -7 lines 0 comments Download
A + content/browser/renderer_host/media/video_capture_buffer_tracker_factory_impl.cc View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.h View 3 chunks +7 lines, -16 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 5 chunks +12 lines, -9 lines 0 comments Download
D content/browser/renderer_host/media/video_capture_device_client.h View 1 chunk +0 lines, -131 lines 0 comments Download
D content/browser/renderer_host/media/video_capture_device_client.cc View 1 chunk +0 lines, -415 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_client_unittest.cc View 1 3 chunks +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.h View 3 chunks +2 lines, -36 lines 0 comments Download
M media/capture/BUILD.gn View 1 3 chunks +11 lines, -1 line 0 comments Download
M media/capture/video/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
A + media/capture/video/video_capture_buffer_handle.h View 2 chunks +7 lines, -6 lines 0 comments Download
A + media/capture/video/video_capture_buffer_pool.h View 1 2 2 chunks +28 lines, -98 lines 0 comments Download
A media/capture/video/video_capture_buffer_pool_impl.h View 1 1 chunk +95 lines, -0 lines 0 comments Download
A + media/capture/video/video_capture_buffer_pool_impl.cc View 1 2 4 chunks +11 lines, -9 lines 0 comments Download
A + media/capture/video/video_capture_buffer_tracker.h View 2 chunks +6 lines, -6 lines 0 comments Download
A media/capture/video/video_capture_buffer_tracker_factory.h View 1 chunk +26 lines, -0 lines 0 comments Download
A + media/capture/video/video_capture_device_client.h View 4 chunks +7 lines, -8 lines 0 comments Download
A + media/capture/video/video_capture_device_client.cc View 1 2 8 chunks +27 lines, -37 lines 0 comments Download
A media/capture/video/video_capture_jpeg_decoder.h View 1 chunk +45 lines, -0 lines 0 comments Download
A media/capture/video/video_frame_receiver.h View 1 1 chunk +24 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (13 generated)
mcasas
Feel free to remove these comments when uploading the definitive patch for review. https://codereview.chromium.org/2361173002/diff/20001/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc File ...
4 years, 3 months ago (2016-09-22 21:41:59 UTC) #4
chfremer
Adding Reviewers miu@: Optional Review emircan@: FYI
4 years, 3 months ago (2016-09-22 23:24:58 UTC) #6
chfremer
mcasas@: PTAL https://codereview.chromium.org/2361173002/diff/20001/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc File content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc (right): https://codereview.chromium.org/2361173002/diff/20001/content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc#newcode9 content/browser/renderer_host/media/video_capture_buffer_pool_unittest.cc:9: // this test must lives here and ...
4 years, 3 months ago (2016-09-22 23:41:52 UTC) #7
mcasas
lgtm % some small comments. https://codereview.chromium.org/2361173002/diff/40001/content/browser/renderer_host/media/renderer_host_video_capture_buffer_tracker_factory.h File content/browser/renderer_host/media/renderer_host_video_capture_buffer_tracker_factory.h (right): https://codereview.chromium.org/2361173002/diff/40001/content/browser/renderer_host/media/renderer_host_video_capture_buffer_tracker_factory.h#newcode15 content/browser/renderer_host/media/renderer_host_video_capture_buffer_tracker_factory.h:15: class CONTENT_EXPORT RendererHostVideoCaptureBufferTrackerFactory since ...
4 years, 2 months ago (2016-09-27 00:12:57 UTC) #8
chfremer
addressed mcasas@ comments https://codereview.chromium.org/2361173002/diff/40001/content/browser/renderer_host/media/renderer_host_video_capture_buffer_tracker_factory.h File content/browser/renderer_host/media/renderer_host_video_capture_buffer_tracker_factory.h (right): https://codereview.chromium.org/2361173002/diff/40001/content/browser/renderer_host/media/renderer_host_video_capture_buffer_tracker_factory.h#newcode15 content/browser/renderer_host/media/renderer_host_video_capture_buffer_tracker_factory.h:15: class CONTENT_EXPORT RendererHostVideoCaptureBufferTrackerFactory On 2016/09/27 00:12:57, ...
4 years, 2 months ago (2016-09-27 22:32:27 UTC) #9
chfremer
avi@chromium.org: PTAL RS for files * content/browser/BUILD.gn * content/browser/media/capture/web_contents_video_capture_device_unittest.cc * content/browser/renderer_host/DEPS
4 years, 2 months ago (2016-09-27 22:45:17 UTC) #13
Avi (use Gerrit)
Those content files stamp lgtm
4 years, 2 months ago (2016-09-28 02:18:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2361173002/60001
4 years, 2 months ago (2016-09-28 16:28:04 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 2 months ago (2016-09-28 16:35:57 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 16:38:08 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/162e19a88fa579c8a770e72801e2c79897a10308
Cr-Commit-Position: refs/heads/master@{#421536}

Powered by Google App Engine
This is Rietveld 408576698