Index: webrtc/modules/desktop_capture/win/dxgi_context.cc |
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCUIApplication.mm b/webrtc/modules/desktop_capture/win/dxgi_context.cc |
similarity index 60% |
copy from webrtc/sdk/objc/Framework/Classes/RTCUIApplication.mm |
copy to webrtc/modules/desktop_capture/win/dxgi_context.cc |
index 7e8aea62955dd61e20f3208150c780a99547ca4b..20904c5c1b692a1eb94b5c0327451561f55eca6d 100644 |
--- a/webrtc/sdk/objc/Framework/Classes/RTCUIApplication.mm |
+++ b/webrtc/modules/desktop_capture/win/dxgi_context.cc |
@@ -8,15 +8,14 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
-#include "RTCUIApplication.h" |
+#include "webrtc/modules/desktop_capture/win/dxgi_context.h" |
-#if defined(WEBRTC_IOS) |
+#include "webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h" |
-#import <UIKit/UIKit.h> |
+namespace webrtc { |
-bool RTCIsUIApplicationActive() { |
- UIApplicationState state = [UIApplication sharedApplication].applicationState; |
- return state == UIApplicationStateActive; |
+DxgiContext::~DxgiContext() { |
+ DxgiDuplicatorController::Instance()->Unregister(this); |
} |
-#endif // WEBRTC_IOS |
+} // namespace webrtc |