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

Unified Diff: webrtc/modules/desktop_capture/desktop_frame_win.h

Issue 1988783003: Use std::unique_ptr<> to pass frame ownership in DesktopCapturer impls. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/desktop_frame_win.h
diff --git a/webrtc/modules/desktop_capture/desktop_frame_win.h b/webrtc/modules/desktop_capture/desktop_frame_win.h
index 3513e14ffb7954884b9726563b930434103bbddd..3defb27452a108c3f95fdda8fdd2674ba1ab0309 100644
--- a/webrtc/modules/desktop_capture/desktop_frame_win.h
+++ b/webrtc/modules/desktop_capture/desktop_frame_win.h
@@ -26,9 +26,8 @@ namespace webrtc {
class DesktopFrameWin : public DesktopFrame {
public:
virtual ~DesktopFrameWin();
- static DesktopFrameWin* Create(DesktopSize size,
- SharedMemoryFactory* shared_memory_factory,
- HDC hdc);
+ static std::unique_ptr<DesktopFrameWin>
+ Create(DesktopSize size, SharedMemoryFactory* shared_memory_factory, HDC hdc);
Wez 2016/05/18 01:29:50 Wrapping looks weird; is this what cl format did?
Sergey Ulanov 2016/05/31 12:02:48 yes
HBITMAP bitmap() { return bitmap_; }

Powered by Google App Engine
This is Rietveld 408576698