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

Unified Diff: webrtc/modules/desktop_capture/window_capturer_unittest.cc

Issue 2030333003: Revert of 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, 6 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/window_capturer_unittest.cc
diff --git a/webrtc/modules/desktop_capture/window_capturer_unittest.cc b/webrtc/modules/desktop_capture/window_capturer_unittest.cc
index d2d326e39f4b0e3cee5a64488bb668fb3f4d6db2..32b8b8f23cbba1a24910f85b274102d42a183a79 100644
--- a/webrtc/modules/desktop_capture/window_capturer_unittest.cc
+++ b/webrtc/modules/desktop_capture/window_capturer_unittest.cc
@@ -31,10 +31,7 @@
void TearDown() override {}
// DesktopCapturer::Callback interface
- void OnCaptureResult(DesktopCapturer::Result result,
- std::unique_ptr<DesktopFrame> frame) override {
- frame_ = std::move(frame);
- }
+ void OnCaptureCompleted(DesktopFrame* frame) override { frame_.reset(frame); }
protected:
std::unique_ptr<WindowCapturer> capturer_;
« no previous file with comments | « webrtc/modules/desktop_capture/window_capturer_null.cc ('k') | webrtc/modules/desktop_capture/window_capturer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698