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

Issue 1678073003: Cleanup shared memory handling in DesktopCapturer interface. (Closed)

Created:
4 years, 10 months ago by Sergey Ulanov
Modified:
4 years, 10 months ago
Reviewers:
joedow
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Cleanup shared memory handling in DesktopCapturer interface. Previously shared memory buffers for DesktopCapturer were created using DesktopCapturer::Callback::CreateSharedBuffer(). That made it difficult to proxy DesktopCapturer interface from one thread to another. This CL adds SharedBufferFactory interface that's allowed to be called on a background thread. This also simplifies clients that don't need to use shared memory, as they no longer need to override CreateSharedBuffer(). Committed: https://crrev.com/cc9669c6b80a73bf0481e721841a8cf2f1204a38 Cr-Commit-Position: refs/heads/master@{#11543}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -79 lines) Patch
M webrtc/modules/desktop_capture/cropping_window_capturer.h View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/cropping_window_capturer.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_and_cursor_composer.h View 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_and_cursor_composer.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_and_cursor_composer_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_capturer.h View 3 chunks +13 lines, -5 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_frame.h View 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_frame.cc View 1 chunk +27 lines, -4 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_frame_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_frame_win.cc View 1 2 3 3 chunks +20 lines, -14 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_mac_unittest.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_mock_objects.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_unittest.cc View 1 4 chunks +14 lines, -13 lines 0 comments Download
M webrtc/modules/desktop_capture/shared_memory.h View 3 chunks +15 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h View 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc View 1 2 5 chunks +27 lines, -6 lines 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.h View 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc View 1 2 3 2 chunks +11 lines, -12 lines 0 comments Download
M webrtc/modules/desktop_capture/window_capturer_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Sergey Ulanov
4 years, 10 months ago (2016-02-08 21:53:58 UTC) #4
Sergey Ulanov
This CL is necessary for the other CL you reviewed https://codereview.chromium.org/1673723002/ . That CL breaks ...
4 years, 10 months ago (2016-02-08 21:58:35 UTC) #5
joedow
lgtm https://codereview.chromium.org/1678073003/diff/40001/webrtc/modules/desktop_capture/desktop_capturer.h File webrtc/modules/desktop_capture/desktop_capturer.h (right): https://codereview.chromium.org/1678073003/diff/40001/webrtc/modules/desktop_capture/desktop_capturer.h#newcode33 webrtc/modules/desktop_capture/desktop_capturer.h:33: // from chromium. Does this TODO need a ...
4 years, 10 months ago (2016-02-09 17:21:15 UTC) #6
Sergey Ulanov
https://codereview.chromium.org/1678073003/diff/40001/webrtc/modules/desktop_capture/desktop_capturer.h File webrtc/modules/desktop_capture/desktop_capturer.h (right): https://codereview.chromium.org/1678073003/diff/40001/webrtc/modules/desktop_capture/desktop_capturer.h#newcode33 webrtc/modules/desktop_capture/desktop_capturer.h:33: // from chromium. On 2016/02/09 17:21:15, joedow wrote: > ...
4 years, 10 months ago (2016-02-09 20:07:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1678073003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1678073003/80001
4 years, 10 months ago (2016-02-09 20:07:40 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/12379)
4 years, 10 months ago (2016-02-09 20:13:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1678073003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1678073003/100001
4 years, 10 months ago (2016-02-09 22:08:53 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 10 months ago (2016-02-09 23:13:30 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 23:13:43 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cc9669c6b80a73bf0481e721841a8cf2f1204a38
Cr-Commit-Position: refs/heads/master@{#11543}

Powered by Google App Engine
This is Rietveld 408576698