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

Side by Side Diff: webrtc/modules/desktop_capture/win/dxgi_context.h

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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_ 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_ 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_
13 13
14 #include <vector> 14 #include <vector>
15
15 #include "webrtc/modules/desktop_capture/desktop_region.h" 16 #include "webrtc/modules/desktop_capture/desktop_region.h"
16 17
17 namespace webrtc { 18 namespace webrtc {
18 19
19 // A DxgiOutputContext stores the status of a single DxgiFrame of 20 // A DxgiOutputContext stores the status of a single DxgiFrame of
20 // DxgiOutputDuplicator. 21 // DxgiOutputDuplicator.
21 struct DxgiOutputContext final { 22 struct DxgiOutputContext final {
22 // The updated region DxgiOutputDuplicator::DetectUpdatedRegion() output 23 // The updated region DxgiOutputDuplicator::DetectUpdatedRegion() output
23 // during last Duplicate() function call. It's always relative to the (0, 0). 24 // during last Duplicate() function call. It's always relative to the (0, 0).
24 DesktopRegion updated_region; 25 DesktopRegion updated_region;
(...skipping 27 matching lines...) Expand all
52 // each DxgiDuplicatorController::Initialize(). 53 // each DxgiDuplicatorController::Initialize().
53 int controller_id = 0; 54 int controller_id = 0;
54 55
55 // Child DxgiAdapterContext belongs to this DxgiFrameContext. 56 // Child DxgiAdapterContext belongs to this DxgiFrameContext.
56 std::vector<DxgiAdapterContext> contexts; 57 std::vector<DxgiAdapterContext> contexts;
57 }; 58 };
58 59
59 } // namespace webrtc 60 } // namespace webrtc
60 61
61 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_ 62 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698