|
Use std::unique_ptr<> to pass frame ownership in DesktopCapturer impls.
Previously raw pointers were used for owned DesktopFrame instances.
Updated all screen and window capturer implementations to use
std::unique_ptr<>.
Also includes some other cleanups in the capturers:
- s/NULL/nullptr
- moved default initializers to class definition.
BUG= webrtc:5950
Committed: https://crrev.com/5d910286e1e802245eec2cd76f5f8bef6e671e51
Cr-Commit-Position: refs/heads/master@{#13058}
Total comments: 32
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+386 lines, -447 lines) |
Patch |
|
M |
webrtc/modules/desktop_capture/cropped_desktop_frame.h
|
View
|
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/cropped_desktop_frame.cc
|
View
|
|
2 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/cropping_window_capturer.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/cropping_window_capturer.cc
|
View
|
1
|
1 chunk |
+9 lines, -9 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/desktop_and_cursor_composer.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/desktop_and_cursor_composer.cc
|
View
|
1
|
3 chunks |
+17 lines, -13 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/desktop_and_cursor_composer_unittest.cc
|
View
|
1
|
3 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/desktop_capturer.h
|
View
|
1
2
|
1 chunk |
+26 lines, -5 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/desktop_frame_win.h
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/desktop_frame_win.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/screen_capture_frame_queue.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/screen_capturer_mac.mm
|
View
|
1
2
3
4
5
|
19 chunks |
+45 lines, -62 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/screen_capturer_mac_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+17 lines, -12 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/screen_capturer_mock_objects.h
|
View
|
1
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/screen_capturer_unittest.cc
|
View
|
1
|
6 chunks |
+16 lines, -14 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/screen_capturer_x11.cc
|
View
|
1
2
3
4
5
|
10 chunks |
+34 lines, -48 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/shared_desktop_frame.h
|
View
|
1
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/shared_desktop_frame.cc
|
View
|
1
2
|
2 chunks |
+15 lines, -40 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h
|
View
|
1
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
|
View
|
1
2
3
4
5
|
9 chunks |
+30 lines, -32 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h
|
View
|
1
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc
|
View
|
1
2
3
|
9 chunks |
+22 lines, -30 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.h
|
View
|
1
|
2 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
|
View
|
1
|
8 chunks |
+17 lines, -48 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/window_capturer_mac.mm
|
View
|
1
2
3
4
5
|
9 chunks |
+16 lines, -19 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/window_capturer_null.cc
|
View
|
1
|
2 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/window_capturer_unittest.cc
|
View
|
1
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/window_capturer_win.cc
|
View
|
1
2
3
|
6 chunks |
+15 lines, -19 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/desktop_capture/window_capturer_x11.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+18 lines, -24 lines |
0 comments
|
Download
|
Total messages: 56 (32 generated)
|