Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; | 53 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; |
| 54 void CaptureFrame() override; | 54 void CaptureFrame() override; |
| 55 bool GetSourceList(SourceList* sources) override; | 55 bool GetSourceList(SourceList* sources) override; |
| 56 bool SelectSource(SourceId id) override; | 56 bool SelectSource(SourceId id) override; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 // Returns desktop size of selected screen. | 59 // Returns desktop size of selected screen. |
| 60 DesktopSize SelectedDesktopSize() const; | 60 DesktopSize SelectedDesktopSize() const; |
| 61 | 61 |
| 62 ScreenCaptureFrameQueue<SharedDesktopFrame> frames_; | 62 ScreenCaptureFrameQueue<SharedDesktopFrame> frames_; |
| 63 ScreenCaptureFrameQueue<DxgiDuplicatorController::Context> contexts_; | |
|
Sergey Ulanov
2017/03/30 17:59:41
Add a struct that holds a Context together with a
Hzj_jie
2017/03/30 18:11:18
I am happy to do so. But considering this change i
Sergey Ulanov
2017/03/31 19:28:53
Add a TODO?
Hzj_jie
2017/03/31 20:39:52
Definitely.
| |
| 63 std::unique_ptr<SharedMemoryFactory> shared_memory_factory_; | 64 std::unique_ptr<SharedMemoryFactory> shared_memory_factory_; |
| 64 Callback* callback_ = nullptr; | 65 Callback* callback_ = nullptr; |
| 65 DxgiDuplicatorController::Context context_; | |
| 66 SourceId current_screen_id_ = kFullDesktopScreenId; | 66 SourceId current_screen_id_ = kFullDesktopScreenId; |
| 67 ResolutionChangeDetector resolution_change_detector_; | 67 ResolutionChangeDetector resolution_change_detector_; |
| 68 | 68 |
| 69 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinDirectx); | 69 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinDirectx); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace webrtc | 72 } // namespace webrtc |
| 73 | 73 |
| 74 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_ | 74 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_ |
| OLD | NEW |