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

Issue 2050353002: Update webrtc::DesktopCapturer clients to implement OnCaptureResult(). (Closed)

Created:
4 years, 6 months ago by Sergey Ulanov
Modified:
4 years, 6 months ago
Reviewers:
Tom Sepez, Wez, Jamie
CC:
chromium-reviews, oshima+watch_chromium.org, chromoting-reviews_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, Hzj_jie
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update webrtc::DesktopCapturer clients to implement OnCaptureResult(). OnCaptureCompleted() method in webrtc::DesktopCapturer::Callback is being replaced with OnCaptureResult(). The new method uses unique_ptr<> to pass frame ownership, and also gets a Result code that allows to distinguish between different types of capture errors. BUG=webrtc:5950 Committed: https://crrev.com/546cbaa96e356990ae1bb801d720025ca814812c Cr-Commit-Position: refs/heads/master@{#400494}

Patch Set 1 #

Total comments: 2

Patch Set 2 : update #

Total comments: 6

Patch Set 3 : addressed feedback #

Patch Set 4 : desktop_capture_device_unittest compilation #

Patch Set 5 : fix tests #

Patch Set 6 : . #

Patch Set 7 : fix chromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -137 lines) Patch
M chrome/browser/media/native_desktop_media_list.cc View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/media/native_desktop_media_list_unittest.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
M content/browser/media/capture/desktop_capture_device.cc View 1 6 chunks +40 lines, -45 lines 0 comments Download
M content/browser/media/capture/desktop_capture_device_unittest.cc View 1 2 3 5 chunks +19 lines, -20 lines 0 comments Download
M remoting/host/chromeos/aura_desktop_capturer.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/host/chromeos/aura_desktop_capturer_unittest.cc View 1 2 3 4 5 6 4 chunks +19 lines, -13 lines 0 comments Download
M remoting/host/chromoting_messages.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M remoting/host/desktop_capturer_proxy.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/desktop_capturer_proxy.cc View 3 chunks +9 lines, -6 lines 0 comments Download
M remoting/host/desktop_session_agent.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/desktop_session_agent.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M remoting/host/desktop_session_proxy.h View 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/host/desktop_session_proxy.cc View 1 2 5 chunks +14 lines, -12 lines 0 comments Download
M remoting/host/ipc_desktop_environment_unittest.cc View 2 chunks +10 lines, -6 lines 0 comments Download
M remoting/host/ipc_video_frame_capturer.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/ipc_video_frame_capturer.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/protocol/connection_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/fake_desktop_capturer.cc View 1 chunk +4 lines, -1 line 0 comments Download
M remoting/protocol/video_frame_pump.h View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/video_frame_pump.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/protocol/video_frame_pump_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/webrtc_frame_scheduler.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/webrtc_frame_scheduler.cc View 1 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (20 generated)
Sergey Ulanov
4 years, 6 months ago (2016-06-09 18:39:12 UTC) #2
Sergey Ulanov
+tsepez@ for remoting/host/chromoting_messages.h
4 years, 6 months ago (2016-06-09 18:40:26 UTC) #5
Tom Sepez
messages LGTM
4 years, 6 months ago (2016-06-09 19:08:09 UTC) #6
Sergey Ulanov
+jamiewalch@ Jamie, looks like Wez is busy, can you please take a look?
4 years, 6 months ago (2016-06-14 18:12:18 UTC) #8
Jamie
lgtm https://codereview.chromium.org/2050353002/diff/20001/remoting/host/chromoting_messages.h File remoting/host/chromoting_messages.h (right): https://codereview.chromium.org/2050353002/diff/20001/remoting/host/chromoting_messages.h#newcode177 remoting/host/chromoting_messages.h:177: webrtc::DesktopCapturer::Result::ERROR_PERMANENT) Relying on ERROR_PERMANENT as being the max ...
4 years, 6 months ago (2016-06-14 21:22:44 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/2050353002/diff/20001/remoting/host/chromoting_messages.h File remoting/host/chromoting_messages.h (right): https://codereview.chromium.org/2050353002/diff/20001/remoting/host/chromoting_messages.h#newcode177 remoting/host/chromoting_messages.h:177: webrtc::DesktopCapturer::Result::ERROR_PERMANENT) On 2016/06/14 21:22:44, Jamie wrote: > Relying on ...
4 years, 6 months ago (2016-06-15 20:30:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050353002/40001
4 years, 6 months ago (2016-06-17 00:31:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/154311)
4 years, 6 months ago (2016-06-17 00:42:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050353002/60001
4 years, 6 months ago (2016-06-17 01:03:04 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/154375)
4 years, 6 months ago (2016-06-17 01:16:59 UTC) #20
Wez
https://codereview.chromium.org/2050353002/diff/1/chrome/browser/media/native_desktop_media_list.cc File chrome/browser/media/native_desktop_media_list.cc (right): https://codereview.chromium.org/2050353002/diff/1/chrome/browser/media/native_desktop_media_list.cc#newcode233 chrome/browser/media/native_desktop_media_list.cc:233: current_frame_ = std::move(frame); You're changing the semantics such that ...
4 years, 6 months ago (2016-06-17 05:57:16 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050353002/80001
4 years, 6 months ago (2016-06-17 14:52:21 UTC) #24
Sergey Ulanov
https://codereview.chromium.org/2050353002/diff/1/chrome/browser/media/native_desktop_media_list.cc File chrome/browser/media/native_desktop_media_list.cc (right): https://codereview.chromium.org/2050353002/diff/1/chrome/browser/media/native_desktop_media_list.cc#newcode233 chrome/browser/media/native_desktop_media_list.cc:233: current_frame_ = std::move(frame); On 2016/06/17 05:57:16, Wez wrote: > ...
4 years, 6 months ago (2016-06-17 14:59:54 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050353002/100001
4 years, 6 months ago (2016-06-17 15:00:31 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/154627) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 6 months ago (2016-06-17 15:13:36 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050353002/120001
4 years, 6 months ago (2016-06-17 19:48:40 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-17 20:39:46 UTC) #36
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 20:41:16 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/546cbaa96e356990ae1bb801d720025ca814812c
Cr-Commit-Position: refs/heads/master@{#400494}

Powered by Google App Engine
This is Rietveld 408576698