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

Issue 2407623002: VideoCapture: migrate last Renderer-->Host msg and start Host-->Renderer migration (Closed)

Created:
4 years, 2 months ago by mcasas
Modified:
4 years, 2 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

VideoCapture: migrate Host-->Renderer OnStateUpdate message This CL migrates the last video capture message renderer-->host (wrongly named BufferReady, renamed to ReleaseBuffer since it's an instruction/command). This allows for a few extra simplifications in unit tests. Also it begins the migration of messages from Host back to Renderer. A mojom::VideoCaptureObserver is added, implemented in VideoCaptureImpl via a binding valid between Start() and Stop(). The host-->renderer OnStateUpdate message is migrated to mojom. BUG=651897 Committed: https://crrev.com/32a8820f9924f0f6033d779a40c7dd103afb83e9 Cr-Commit-Position: refs/heads/master@{#424339}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : chfremer@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -278 lines) Patch
M content/browser/renderer_host/media/video_capture_controller_event_handler.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.h View 1 5 chunks +20 lines, -17 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 1 8 chunks +64 lines, -43 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 14 chunks +34 lines, -25 lines 0 comments Download
M content/common/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/media/video_capture_messages.h View 3 chunks +0 lines, -17 lines 0 comments Download
M content/common/video_capture.mojom View 1 3 chunks +27 lines, -3 lines 0 comments Download
M content/renderer/media/video_capture_impl.h View 5 chunks +13 lines, -7 lines 0 comments Download
M content/renderer/media/video_capture_impl.cc View 8 chunks +51 lines, -56 lines 0 comments Download
M content/renderer/media/video_capture_impl_manager_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/media/video_capture_impl_unittest.cc View 15 chunks +48 lines, -54 lines 0 comments Download
M content/renderer/media/video_capture_message_filter.h View 2 chunks +0 lines, -7 lines 0 comments Download
M content/renderer/media/video_capture_message_filter.cc View 4 chunks +0 lines, -20 lines 0 comments Download
M content/renderer/media/video_capture_message_filter_unittest.cc View 3 chunks +0 lines, -28 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
mcasas
rockot@ PTAL at the idioms I'm using to get notifications back on VideoCaptureImpl from VideoCaptureHost, ...
4 years, 2 months ago (2016-10-09 21:15:54 UTC) #15
Ken Rockot(use gerrit already)
lgtm
4 years, 2 months ago (2016-10-10 16:10:36 UTC) #16
Tom Sepez
mojom LGTM
4 years, 2 months ago (2016-10-10 17:27:35 UTC) #17
chfremer
lgtm % comments https://codereview.chromium.org/2407623002/diff/200001/content/browser/renderer_host/media/video_capture_host.h File content/browser/renderer_host/media/video_capture_host.h (right): https://codereview.chromium.org/2407623002/diff/200001/content/browser/renderer_host/media/video_capture_host.h#newcode151 content/browser/renderer_host/media/video_capture_host.h:151: std::map<int32_t, mojom::VideoCaptureObserverPtr> observers_; Unclear what the ...
4 years, 2 months ago (2016-10-10 18:57:19 UTC) #18
mcasas
avi@ plz RS content/common/BUILD.gn addition, thanks! https://codereview.chromium.org/2407623002/diff/200001/content/browser/renderer_host/media/video_capture_host.h File content/browser/renderer_host/media/video_capture_host.h (right): https://codereview.chromium.org/2407623002/diff/200001/content/browser/renderer_host/media/video_capture_host.h#newcode151 content/browser/renderer_host/media/video_capture_host.h:151: std::map<int32_t, mojom::VideoCaptureObserverPtr> observers_; ...
4 years, 2 months ago (2016-10-10 19:39:44 UTC) #20
Avi (use Gerrit)
content/common/BUILD.gn lgtm
4 years, 2 months ago (2016-10-11 00:19:11 UTC) #25
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/2407623002/220001
4 years, 2 months ago (2016-10-11 01:55:03 UTC) #28
commit-bot: I haz the power
Committed patchset #2 (id:220001)
4 years, 2 months ago (2016-10-11 02:03:12 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 02:10:06 UTC) #32
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/32a8820f9924f0f6033d779a40c7dd103afb83e9
Cr-Commit-Position: refs/heads/master@{#424339}

Powered by Google App Engine
This is Rietveld 408576698