Index: webrtc/modules/desktop_capture/desktop_frame_win.cc |
diff --git a/webrtc/modules/desktop_capture/desktop_frame_win.cc b/webrtc/modules/desktop_capture/desktop_frame_win.cc |
index 6adce92f39145319e46f9b92ce0fb23ce9aea7f1..624b729203b4fc8bbd45dfa4a74fc8cd756a135e 100644 |
--- a/webrtc/modules/desktop_capture/desktop_frame_win.cc |
+++ b/webrtc/modules/desktop_capture/desktop_frame_win.cc |
@@ -30,7 +30,7 @@ |
} |
// static |
-std::unique_ptr<DesktopFrameWin> DesktopFrameWin::Create( |
+DesktopFrameWin* DesktopFrameWin::Create( |
DesktopSize size, |
SharedMemoryFactory* shared_memory_factory, |
HDC hdc) { |
@@ -60,9 +60,9 @@ |
return nullptr; |
} |
- return std::unique_ptr<DesktopFrameWin>( |
- new DesktopFrameWin(size, bytes_per_row, reinterpret_cast<uint8_t*>(data), |
- std::move(shared_memory), bitmap)); |
+ return new DesktopFrameWin(size, bytes_per_row, |
+ reinterpret_cast<uint8_t*>(data), |
+ std::move(shared_memory), bitmap); |
} |
} // namespace webrtc |