OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |