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

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

Issue 2781253002: ScreenCapturerWinDirectx flickers in Desktop Capturer Sample (Closed)
Patch Set: Resolve review comments Created 3 years, 8 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
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698