| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void SetSharedMemoryFactory( | 52 void SetSharedMemoryFactory( |
| 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 // TODO(zijiehe): Merge |frames_| and |contexts_| into a single object. |
| 62 ScreenCaptureFrameQueue<SharedDesktopFrame> frames_; | 63 ScreenCaptureFrameQueue<SharedDesktopFrame> frames_; |
| 64 ScreenCaptureFrameQueue<DxgiDuplicatorController::Context> contexts_; |
| 63 std::unique_ptr<SharedMemoryFactory> shared_memory_factory_; | 65 std::unique_ptr<SharedMemoryFactory> shared_memory_factory_; |
| 64 Callback* callback_ = nullptr; | 66 Callback* callback_ = nullptr; |
| 65 DxgiDuplicatorController::Context context_; | |
| 66 SourceId current_screen_id_ = kFullDesktopScreenId; | 67 SourceId current_screen_id_ = kFullDesktopScreenId; |
| 67 ResolutionChangeDetector resolution_change_detector_; | 68 ResolutionChangeDetector resolution_change_detector_; |
| 68 | 69 |
| 69 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinDirectx); | 70 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinDirectx); |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 } // namespace webrtc | 73 } // namespace webrtc |
| 73 | 74 |
| 74 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_ | 75 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_DIRECTX_H_ |
| OLD | NEW |