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

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

Issue 2933893003: Add reference counter of DxgiDuplicatorController to unload DXGI components (Closed)
Patch Set: unique_ptr -> scoped_refptr Created 3 years, 6 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/modules/desktop_capture/win/dxgi_context.cc b/webrtc/modules/desktop_capture/win/dxgi_context.cc
index dffefc404f67da729b73a8b56553869d015d153d..9a078193b493f8c4eb413fc4e19efc8ba4ae8bbe 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_context.cc
+++ b/webrtc/modules/desktop_capture/win/dxgi_context.cc
@@ -9,6 +9,7 @@
*/
#include "webrtc/modules/desktop_capture/win/dxgi_context.h"
+
#include "webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h"
namespace webrtc {
@@ -21,7 +22,7 @@ DxgiAdapterContext::~DxgiAdapterContext() = default;
DxgiFrameContext::DxgiFrameContext() = default;
DxgiFrameContext::~DxgiFrameContext() {
- DxgiDuplicatorController::Instance()->Unregister(this);
+ DxgiDuplicatorController::GetReference()->Unregister(this);
}
void DxgiFrameContext::Reset() {

Powered by Google App Engine
This is Rietveld 408576698