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

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_context.cc

Issue 2099123002: [Chromoting] Improve DirectX capturer to support multiple outputs (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Use a self-incremented integer to identify a DxgiDuplicatorContaienr::Initialize Created 4 years, 5 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/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 61%
copy from webrtc/sdk/objc/Framework/Classes/RTCUIApplication.mm
copy to webrtc/modules/desktop_capture/win/dxgi_context.cc
index 7e8aea62955dd61e20f3208150c780a99547ca4b..77c842b2f64c3cfc0a9632828cd2693187d932f8 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_container.h"
-#import <UIKit/UIKit.h>
+namespace webrtc {
-bool RTCIsUIApplicationActive() {
- UIApplicationState state = [UIApplication sharedApplication].applicationState;
- return state == UIApplicationStateActive;
+DxgiContext::~DxgiContext() {
+ DxgiDuplicatorContainer::Instance()->Unregister(this);
}
-#endif // WEBRTC_IOS
+} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698