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

Issue 2409833002: Remove DesktopRegion parameter in DesktopCapturer::Capture. (Closed)

Created:
4 years, 2 months ago by Hzj_jie
Modified:
4 years, 2 months ago
Reviewers:
Sergey Ulanov
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove DesktopRegion parameter from DesktopCapturer::Capture. To ensure this change won't break Chromium, this is the first change, to add a new CaptureFrame() function, and let Capture(DesktopRegion) and CaptureFrame() call each other. So both a legacy consumer or a legacy implementation won't be broken. BUG=https://bugs.chromium.org/p/webrtc/issues/detail?id=6513 Committed: https://crrev.com/91902cb6c0e1753c1bebb2848992092fb1e5d419 Cr-Commit-Position: refs/heads/master@{#14635}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Resolve review comments #

Patch Set 3 : Change Capture2 to CaptureFrame #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -51 lines) Patch
M webrtc/modules/desktop_capture/cropping_window_capturer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/cropping_window_capturer.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_and_cursor_composer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/desktop_and_cursor_composer.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_and_cursor_composer_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/desktop_capture/desktop_capturer.h View 1 2 1 chunk +6 lines, -7 lines 0 comments Download
M webrtc/modules/desktop_capture/fake_desktop_capturer.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_differ_wrapper.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_differ_wrapper.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_differ_wrapper_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_mac.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_mock_objects.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_unittest.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/desktop_capture/screen_capturer_x11.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/desktop_capture/window_capturer_mac.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/window_capturer_null.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/window_capturer_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/desktop_capture/window_capturer_x11.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
Hzj_jie
4 years, 2 months ago (2016-10-11 18:30:36 UTC) #10
Sergey Ulanov
I don't think there is any reason to add the suffix to the method name. ...
4 years, 2 months ago (2016-10-11 18:42:42 UTC) #11
Hzj_jie
https://codereview.chromium.org/2409833002/diff/100001/webrtc/modules/desktop_capture/desktop_capturer.h File webrtc/modules/desktop_capture/desktop_capturer.h (right): https://codereview.chromium.org/2409833002/diff/100001/webrtc/modules/desktop_capture/desktop_capturer.h#newcode73 webrtc/modules/desktop_capture/desktop_capturer.h:73: // Pending capture requests will be ignored once DesktopCapturer ...
4 years, 2 months ago (2016-10-11 19:32:05 UTC) #12
Hzj_jie
On 2016/10/11 19:32:05, Hzj_jie wrote: > https://codereview.chromium.org/2409833002/diff/100001/webrtc/modules/desktop_capture/desktop_capturer.h > File webrtc/modules/desktop_capture/desktop_capturer.h (right): > > https://codereview.chromium.org/2409833002/diff/100001/webrtc/modules/desktop_capture/desktop_capturer.h#newcode73 > ...
4 years, 2 months ago (2016-10-12 19:12:50 UTC) #13
Sergey Ulanov
Please try renaming Capture2->Capture https://codereview.chromium.org/2409833002/diff/100001/webrtc/modules/desktop_capture/desktop_capturer.h File webrtc/modules/desktop_capture/desktop_capturer.h (right): https://codereview.chromium.org/2409833002/diff/100001/webrtc/modules/desktop_capture/desktop_capturer.h#newcode75 webrtc/modules/desktop_capture/desktop_capturer.h:75: virtual void Capture2() { Capture(DesktopRegion()); ...
4 years, 2 months ago (2016-10-12 21:22:52 UTC) #14
Hzj_jie
On 2016/10/12 21:22:52, Sergey Ulanov wrote: > Please try renaming Capture2->Capture > > https://codereview.chromium.org/2409833002/diff/100001/webrtc/modules/desktop_capture/desktop_capturer.h > ...
4 years, 2 months ago (2016-10-12 21:54:19 UTC) #15
Sergey Ulanov
On 2016/10/12 21:54:19, Hzj_jie wrote: > On 2016/10/12 21:22:52, Sergey Ulanov wrote: > > I ...
4 years, 2 months ago (2016-10-12 22:07:58 UTC) #16
Sergey Ulanov
On 2016/10/12 22:07:58, Sergey Ulanov wrote: > On 2016/10/12 21:54:19, Hzj_jie wrote: > > On ...
4 years, 2 months ago (2016-10-12 22:10:53 UTC) #17
Hzj_jie
On 2016/10/12 22:10:53, Sergey Ulanov wrote: > On 2016/10/12 22:07:58, Sergey Ulanov wrote: > > ...
4 years, 2 months ago (2016-10-12 22:27:07 UTC) #18
Sergey Ulanov
I see. Then I suggest calling new function CaptureFrame() instead of Capture2(). This way you ...
4 years, 2 months ago (2016-10-12 23:10:55 UTC) #19
Hzj_jie
On 2016/10/12 23:10:55, Sergey Ulanov wrote: > I see. Then I suggest calling new function ...
4 years, 2 months ago (2016-10-12 23:12:39 UTC) #20
Hzj_jie
On 2016/10/12 23:12:39, Hzj_jie wrote: > On 2016/10/12 23:10:55, Sergey Ulanov wrote: > > I ...
4 years, 2 months ago (2016-10-12 23:45:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2409833002/140001
4 years, 2 months ago (2016-10-13 23:46:13 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:140001)
4 years, 2 months ago (2016-10-13 23:47:55 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 23:47:59 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/91902cb6c0e1753c1bebb2848992092fb1e5d419
Cr-Commit-Position: refs/heads/master@{#14635}

Powered by Google App Engine
This is Rietveld 408576698