diff --git a/modules/desktop_capture/mac/desktop_frame_cgimage.h b/modules/desktop_capture/mac/desktop_frame_cgimage.h index d6279f9b36..fa1a6502d9 100644 --- a/modules/desktop_capture/mac/desktop_frame_cgimage.h +++ b/modules/desktop_capture/mac/desktop_frame_cgimage.h @@ -20,7 +20,7 @@ namespace webrtc { -class DesktopFrameCGImage final : public DesktopFrame { +class RTC_EXPORT DesktopFrameCGImage final : public DesktopFrame { public: // Create an image containing a snapshot of the display at the time this is // being called. @@ -33,15 +33,15 @@ class DesktopFrameCGImage final : public DesktopFrame { static std::unique_ptr CreateForWindow( CGWindowID window_id); + static std::unique_ptr CreateFromCGImage( + rtc::ScopedCFTypeRef cg_image); + ~DesktopFrameCGImage() override; DesktopFrameCGImage(const DesktopFrameCGImage&) = delete; DesktopFrameCGImage& operator=(const DesktopFrameCGImage&) = delete; private: - static std::unique_ptr CreateFromCGImage( - rtc::ScopedCFTypeRef cg_image); - // This constructor expects `cg_image` to hold a non-null CGImageRef. DesktopFrameCGImage(DesktopSize size, int stride,