Index: webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
index d3035a15ca52d4c3f79aa2082c0dc4610e97f9ea..dc2bdf52873bfc114dc3d5c68abf548f72e8e96c 100644 |
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
@@ -20,6 +20,7 @@ |
#include "webrtc/modules/desktop_capture/desktop_region.h" |
#include "webrtc/modules/desktop_capture/differ.h" |
#include "webrtc/modules/desktop_capture/mouse_cursor.h" |
+#include "webrtc/modules/desktop_capture/win/callback_shared_memory_factory.h" |
#include "webrtc/modules/desktop_capture/win/cursor.h" |
#include "webrtc/modules/desktop_capture/win/desktop.h" |
#include "webrtc/modules/desktop_capture/win/screen_capture_utils.h" |
@@ -36,22 +37,6 @@ const UINT DWM_EC_ENABLECOMPOSITION = 1; |
const wchar_t kDwmapiLibraryName[] = L"dwmapi.dll"; |
-// SharedMemoryFactory that creates SharedMemory using the deprecated |
-// DesktopCapturer::Callback::CreateSharedMemory(). |
-class CallbackSharedMemoryFactory : public SharedMemoryFactory { |
- public: |
- CallbackSharedMemoryFactory(DesktopCapturer::Callback* callback) |
- : callback_(callback) {} |
- ~CallbackSharedMemoryFactory() override {} |
- |
- rtc::scoped_ptr<SharedMemory> CreateSharedMemory(size_t size) override { |
- return rtc::scoped_ptr<SharedMemory>(callback_->CreateSharedMemory(size)); |
- } |
- |
- private: |
- DesktopCapturer::Callback* callback_; |
-}; |
- |
} // namespace |
ScreenCapturerWinGdi::ScreenCapturerWinGdi(const DesktopCaptureOptions& options) |