Index: webrtc/modules/desktop_capture/cropped_desktop_frame.h |
diff --git a/webrtc/modules/desktop_capture/cropped_desktop_frame.h b/webrtc/modules/desktop_capture/cropped_desktop_frame.h |
index 42ae587acb653498465b605710d1ba4ce84a702e..29449e27f3d7b0088c8befe8e9d030559be84b13 100644 |
--- a/webrtc/modules/desktop_capture/cropped_desktop_frame.h |
+++ b/webrtc/modules/desktop_capture/cropped_desktop_frame.h |
@@ -15,11 +15,10 @@ |
namespace webrtc { |
-// Returns nullptr frame if |rect| is not contained by the bounds of |frame|. |
-std::unique_ptr<DesktopFrame> CreateCroppedDesktopFrame( |
- std::unique_ptr<DesktopFrame> frame, |
- const DesktopRect& rect); |
- |
+// Always takes ownership of |frame|. Returns NULL if |rect| is not contained |
+// by the bounds of |frame|. |
+DesktopFrame* CreateCroppedDesktopFrame(DesktopFrame* frame, |
+ const DesktopRect& rect); |
} // namespace webrtc |
#endif // WEBRTC_MODULES_DESKTOP_CAPTURE_CROPPED_DESKTOP_FRAME_H_ |