OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #ifndef MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_ | |
12 #define MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_ | |
13 | |
14 #include <vector> | |
15 | |
16 #include "webrtc/modules/desktop_capture/desktop_region.h" | |
17 | |
18 namespace webrtc { | |
19 | |
20 struct DxgiContext { | |
Sergey Ulanov
2016/07/26 00:48:51
Add comment to explain how this class is used.
Hzj_jie
2016/07/26 02:13:01
Done.
| |
21 private: | |
22 friend class DxgiOutputDuplicator; | |
23 friend class DxgiAdapterDuplicator; | |
24 friend class DxgiDuplicatorContainer; | |
Sergey Ulanov
2016/07/26 00:48:51
So here you have struct with all fields private an
Hzj_jie
2016/07/26 02:13:01
Done.
| |
25 | |
26 // The time this DxgiContext got initialized. DxgiDuplicationContainer uses | |
27 // this time to decide whether current DxgiContext needs to be updated. | |
28 int64_t initialize_time_nanos_ = 0; | |
Sergey Ulanov
2016/07/26 00:48:51
remove _ suffix. It's used only for class fields,
Hzj_jie
2016/07/26 02:13:01
Changed into class.
| |
29 | |
30 // Child DxgiContext belongs to this DxgiContext. | |
31 std::vector<DxgiContext> contexts_; | |
Sergey Ulanov
2016/07/26 00:48:51
Why do you need a tree of contexts?
Hzj_jie
2016/07/26 02:13:01
One update_region_ is for one DxgiOutputDuplicator
| |
32 | |
33 DesktopRegion updated_region_; | |
Sergey Ulanov
2016/07/26 00:48:51
Add comment to make it clear what's stored here.
Hzj_jie
2016/07/26 02:13:01
Done.
| |
34 }; | |
35 | |
36 } // namespace webrtc | |
37 | |
38 #endif // MODULES_DESKTOP_CAPTURE_WIN_DXGI_CONTEXT_H_ | |
OLD | NEW |